achillean / shodan-python

The official Python library for Shodan
https://developer.shodan.io
Other
2.5k stars 559 forks source link

GoogleLocation will not work after November 17, 2012. #26

Closed satreix closed 7 years ago

satreix commented 8 years ago

In shodan/wps.py, the GoogleLocation will not work anymore.

https://code.google.com/p/gears/wiki/GeolocationAPI:

Since Google Gears has been shut down since March 2011, the time has come to also say goodbye to the Geolocation API that powered Google Gears. The Google Gears Geolocation API will stop responding to requests on November 17, 2012.

According to StackOverflow you should look into Google location API. Example:

{
 "homeMobileCountryCode": 310,
 "homeMobileNetworkCode": 260,
 "radioType": "gsm",
 "carrier": "T-Mobile",
 "cellTowers": [
  {
   "cellId": 39627456,
   "locationAreaCode": 40495,
   "mobileCountryCode": 310,
   "mobileNetworkCode": 260,
   "age": 0,
   "signalStrength": -95
  }
 ],
 "wifiAccessPoints": [
  {
   "macAddress": "01:23:45:67:89:AB",
   "signalStrength": 8,
   "age": 0,
   "signalToNoiseRatio": -65,
   "channel": 8
  }
 ]
}
achillean commented 7 years ago

The code in WPS is ancient and used an unofficial API (I think we got it from looking at how Firefox did things) so we've decided to remove wps.py as it wasn't working properly anyways due to what you mentioned.