Skip to main content

Command-line tool for querying the WiGLE API for SSIDs and exporting results as JSON or KML.

Project description

WigleSearch.py

WigleSearch.py is a command-line tool for querying the WiGLE API to search for wireless network SSIDs and export the results in either JSON or KML format (for use in Google Earth or other mapping tools).

This script handles pagination, API token-based authentication, and cleanly outputs formatted results suitable for mapping, analysis, or integration with other tools.

Your API token name and token can be found here: https://wigle.net/account

Install /w PIP

pip install wigle-ssid-search

🔧 Features

  • Query WiGLE for a specific SSID (e.g. Starbucks-WiFi)
  • Save results as:
    • JSON for analysis or scripting
    • KML for visual mapping in tools like Google Earth
  • Handles pagination via searchAfter
  • Respects API rate limits with throttling
  • Output file auto-named if not specified

📦 Requirements

  • Python 3.7+
  • WiGLE API token and token name (not your WiGLE login username)
  • Internet access

Useage

python WigleSearch.py --ssid "YourSSID" --token-name "YourTokenName" --token "YourToken" [--format json|kml] [--output filename] [--max N]

wigle-ssid-search --ssid "YourSSID" --token-name "YourTokenName" --token "YourToken" [--format json|kml] [--output filename] [--max N]

Required arguments:

Argument Description --ssid The SSID name to search for (case sensitive) --token-name The WiGLE API token name (not your login email) --token Your WiGLE API token

Optional arguments:

Argument Description --format Output format: json (default) or kml --output Output filename (defaults to _wigle_results.json/kml) --max Maximum number of records to retrieve (default: 1000) --exact-case Match the SSID with case sensitivity.

Example

Search for SSID MyNetwork using your API token. Export to KML that can be imported into GoogleEarth

python WigleSearch.py --ssid "MyNetwork" --token-name "TOKENNAME" --token "YUORTOKEN" --format kml
# Or with PIP:
wigle-ssid-search --ssid "MyNetwork" --token-name "TOKENNAME" --token "YUORTOKEN" --format kml

Search for SSID MyNetwork using your API token. Export to JSON format.

python WigleSearch.py --ssid "MyNetwork" --token-name "TOKENNAME" --token "YUORTOKEN" --format json --output wifi_results.json
# Or with PIP:
wigle-ssid-search --ssid "MyNetwork" --token-name "TOKENNAME" --token "YUORTOKEN" --format json --output wifi_results.json

Output Notes

JSON format mirrors the raw WiGLE API result structure (usable for scripting or analysis).

KML output includes placemarks with SSID and BSSID, and GPS coordinates (trilat/trilong) for Google Earth or GIS tools.

License

MIT License

Acknowledgments

Built using the public WiGLE API: https://api.wigle.net/api/v2

This tool is unaffiliated with WiGLE.net. Please respect their API Terms of Service.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wigle_ssid_search-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wigle_ssid_search-0.1.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file wigle_ssid_search-0.1.3.tar.gz.

File metadata

  • Download URL: wigle_ssid_search-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for wigle_ssid_search-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a5e034ec255f3473fdf68f90a12c94ef5576edb39808fb4f8c170b5ef04b02e2
MD5 79499f5c563ae8d05f0b8c9ec7fdadeb
BLAKE2b-256 68e1174c86151c23e53fda7c3f990b062026a9cc1521c211862b7357305aca2a

See more details on using hashes here.

File details

Details for the file wigle_ssid_search-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wigle_ssid_search-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7124eceb818485d944726641b792c1527a323d050607f9f7f4568d9de10ccd
MD5 e795d5d817008572c567d1b4c189a894
BLAKE2b-256 6d82ec8c1d9a3d92b16157b3508b69e2319dd15fc4c49f2712e0bb0fd66538d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page