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
问题是从wikimapia.org屏幕截取实体(餐馆名称等)的纬度/经度并限制基于纬度/经度的结果
Here is how I tried:
这是我尝试的方式:
- Install Live HTTP Headers addon in Firefox.
- Filled up the form on the main-page of wikimapia.org to "pizza corner"
- 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
在Firefox中安装Live HTTP Headers插件。
填写wikimapia.org主页上的表格到“披萨角”
看到主站点会点击URL - “http://wikimapia.org/sys/search4/?q=pizza+corner”,然后我从这个页面屏幕截取结果。但是,我无法根据纬度/经度限制结果
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.
当我尝试传递参数lat / long(在Live HTTP Header插件中以x和y给出)时,结果不受主站点的限制。
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.
例如:我点击了网址 - http://wikimapia.org/sys/search4/?x=775833000&y=129832000&z=3&q=pizza%2520corner&start=0&jtype=&try=0,结果不仅限于印度。
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.
我发错了参数吗? URL的正确纬度/经度参数是什么 - http://wikimapia.org/sys/search4/?这样我就可以将结果限制为wikimapia网站。
Thanks in advance. ps: Sorry for the verbosity.
提前致谢。 ps:很抱歉。
2 个解决方案
#1
You aren't sending any POST parameters. Yours are GET parameters.
您没有发送任何POST参数。你的是GET参数。
POST data appears in the body of the request, not in the URI.
POST数据显示在请求正文中,而不是URI中。
#2
I'm not seeing the lat/lon being represented as X and Y in the URL. I'm seeing the following:
我没有看到lat / lon在URL中表示为X和Y.我看到以下内容:
http://wikimapia.org/
#lat=33.8704156
&lon=-84.375
&z=3
&l=0
&m=a
&v=2
&search=pizza+corner
#1
You aren't sending any POST parameters. Yours are GET parameters.
您没有发送任何POST参数。你的是GET参数。
POST data appears in the body of the request, not in the URI.
POST数据显示在请求正文中,而不是URI中。
#2
I'm not seeing the lat/lon being represented as X and Y in the URL. I'm seeing the following:
我没有看到lat / lon在URL中表示为X和Y.我看到以下内容:
http://wikimapia.org/
#lat=33.8704156
&lon=-84.375
&z=3
&l=0
&m=a
&v=2
&search=pizza+corner