检测要传递的 URL POST 参数

发布于 2024-07-25 06:28:02 字数 1001 浏览 2 评论 0原文

问题是从 wikimapia.org 屏幕上抓取实体(餐厅名称等)的纬度/经度,并根据纬度/经度限制结果

以下是我的尝试方法:

  1. 在 Firefox 中安装实时 HTTP 标头插件。
  2. 在 wikimapia.org 的主页上填写了“披萨角”的表格,
  3. 看到主站点会点击 URL -“http://wikimapia.org/sys/search4/?q=pizza+corner" 然后我从屏幕上抓取了该页面的结果。 但是,我无法根据纬度/经度限制结果

虽然我尝试传递参数纬度/经度(在实时 HTTP 标头附加组件中以 x 和 y 形式给出),但与主要结果不同,结果不受限制-地点。

例如:我点击 URL - http://wikimapia.org/sys/search4/?x=775833000&y=129832000&z=3&q=pizza%2520corner&start=0&jtype= &try=0 结果不仅限于印度。

我是否发送了错误的参数?
URL 的正确纬度/经度参数是什么 - http://wikimapia.org/sys/search4/< /a>? 这样我就可以将结果限制为 wikimapia 站点。

提前致谢。 ps:抱歉啰嗦了。

The problem is to screen-scrape the latitude/longitudes for entities(restaurant-names, etc.) from wikimapia.org AND restrict the results based on the latitude/longitude

Here is how I tried:

  1. Install Live HTTP Headers addon in Firefox.
  2. Filled up the form on the main-page of wikimapia.org to "pizza corner"
  3. Saw that the the main site would hit the URL - "http://wikimapia.org/sys/search4/?q=pizza+corner" and then I screen-scraped the results from this page.
    However I am not able to restrict the results based on the latitude/longitude

While I try to pass the parameters lat/long (given as x & y in the Live HTTP Header add-on), the results are not restricted unlike the main-site.

For eg: I hit the URL - http://wikimapia.org/sys/search4/?x=775833000&y=129832000&z=3&q=pizza%2520corner&start=0&jtype=&try=0 the results are not restricted to India.

Am I sending the wrong parameters?
What are the correct latitude/longitude parameters for the URL - http://wikimapia.org/sys/search4/? so that I can restrict the results as the wikimapia site.

Thanks in advance.
ps: Sorry for the verbosity.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

金兰素衣 2024-08-01 06:28:02

您没有发送任何 POST 参数。 你的是 GET 参数。

POST 数据出现在请求正文中,而不是 URI 中。

You aren't sending any POST parameters. Yours are GET parameters.

POST data appears in the body of the request, not in the URI.

孤凫 2024-08-01 06:28:02

我没有看到 URL 中的纬度/经度被表示为 X 和 Y。 我看到以下内容:

http://wikimapia.org/
  #lat=33.8704156
  &lon=-84.375
  &z=3
  &l=0
  &m=a
  &v=2
  &search=pizza+corner

I'm not seeing the lat/lon being represented as X and Y in the URL. I'm seeing the following:

http://wikimapia.org/
  #lat=33.8704156
  &lon=-84.375
  &z=3
  &l=0
  &m=a
  &v=2
  &search=pizza+corner
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文