| pylocation. Python-Wrapper-Bibliothek für Geolocing-IP-Adressen |
Jetzt downloaden |
pylocation. Ranking & Zusammenfassung
- Lizenz:
- MIT/X Consortium Lic...
- Name des Herausgebers:
- Mark Costello
- Website des Verlags:
- https://github.com/mcos/
pylocation. Stichworte
pylocation. Beschreibung
Plelocation ist ein Python-Modul, um den Geolocation-Dienst der IP-Adresse von Hostip.info.installationInstall aus PYPI mit PYPI mit Pipo-Installieren von PylocationUsageFROM-Plearing-Import-Plearage-Initialisierung ohne Angabe einer IP-Adresse mit dieser Modulepyloc = Pylocation () # Gleich wie oben, schließt jedoch die GPS-KoordinatenPyloc = Pylocation (Position = true) # initialisiert mit einer IP-Adresspyloc = Pylocation (IP = 8.8.8.8 ') # wie oben, enthält jedoch die GPS-KoordinatenPyloc = Pylocation (IP =' 8.8.8.8 ', position = true) # outputspyloc.text # Gibt die Informationen als unicode stringpyloc.jsontext # zurück, indem die Informationen als JSON-StringPyloc.json # zurückgibt Eine xml stringpyloc.xml # gibt die Informationen als XML-Elementstruktur zurück. " 'Bergblick, CA'Print pylocinfo.country_name #' United States'print pylocinfo.country_code # 'us'Print pylocinfo.latitude # 37.402Print pylocinfo.longitude # -122.078 "" "Wenn Sie die Informationen für mehrere IP-Adressen erhalten , Sie müssen nicht mehrere Pylocation-Objekte "" "pyloc = pylocation () pyloc.json # benötigen, gibt die JSON-Darstellung der Geolokationsinformationen für die IP des Host machinepyloc.ip = '8.8.8.8' # die IP an 8.8.8.8pyloc.position = echt # In den GPS-KoordinatenPyloc.json # gibt die JSON-Darstellung von Geolocation Info für IP 8.8.8.8Product's Homepage zurück
pylocation. Zugehörige Software