Python-Wi-Fi-Positioning-System icon indicating copy to clipboard operation
Python-Wi-Fi-Positioning-System copied to clipboard

Google Python Pull Request Error

Open alphanumbericnull opened this issue 6 years ago • 2 comments

Hi Guys,

Nice Script. I am getting the following;

[+] Scanning nearby Wi-Fi networks... [+] Generating the HTML request { "considerIp": false, "wifiAccessPoints": [] } [+] Sending the request to Google Traceback (most recent call last): File "wifi_positioning_system.py", line 514, in api_result = simplejson.loads(urllib2.urlopen(http_request, json_data).read()) File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 435, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 473, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 403: Forbidden

Is this because Google has disabled Python pull requests en masse and requires batch dumps instead?

TY

alphanumbericnull avatar Jun 24 '18 01:06 alphanumbericnull

I don't know if you still have a question about this, but I used it around September in 2018 and it worked fine, but as of now, it doesn't work. I guess it is because Google disabled Python pull requests, but even entering the link into the browser gives me a "Not Found", which makes me unsure of my guess.

TheN00bBuilder avatar Jan 30 '19 15:01 TheN00bBuilder

Tested today in july 2019. Work good after getting some 401 / 404.

403: Check your key. I had to 1) activate geolocation API and 2) restrict API key to geolocation API 404: Try to add more WIFI datas. I was scanning using wlan0, raspberry internal wifi in a metal case, and get 404. Got good results with wlan1, wifi dongle with external antenna.

nunux13 avatar Jul 11 '19 12:07 nunux13