command line tool for downloading utility outage data
Project description
kubra
Scraper of storm outage data from kubra.io
To install:
> pip install kubra
To use:
> kubra --help
Usage: kubra [OPTIONS] INSTANCE_ID VIEW_ID
Download all the outages of a storm event associated with an INSTANCE_ID and
VIEW_ID from kubra.io. Outputs a JSON array of outages.
Note that the geometries are encoded as Google polylines.
To find values for INSTANCE_ID and VIEW_ID, go to the outage website, open
up Developer Tools and look for a network request that looks like:
https://kubra.io/stormcenter/api/v1/stormcenters/4fbb3ad3-e01d-4d71-9575-d45
3769c1171/views/8ed2824a-bd92-474e-a7c4-848b812b7f9b/currentState?preview=fa
lse
The first GUID (i.e. 4fbb3ad3-e01d-4d71-9575-d453769c1171) is the
INSTANCE_ID. The second GUID (i.e. 8ed2824a-bd92-474e-a7c4-848b812b7f9b) is
the VIEW_ID.
Options:
--cache_dir TEXT Directory to use to cache responses
--help Show this message and exit.
Credit
Based on Bret Walker's kubra-scraper: https://github.com/openkentuckiana/kubra-scraper
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
kubra-0.1.3.tar.gz
(8.2 kB
view details)
Built Distribution
kubra-0.1.3-py3-none-any.whl
(8.9 kB
view details)
File details
Details for the file kubra-0.1.3.tar.gz
.
File metadata
- Download URL: kubra-0.1.3.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc97a119cf34eb3a0207a6df8ad88c0563b3a3123aed65d913a93783c25f77cd |
|
MD5 | 201c1a3dcc25b97fc8da778c83eb7889 |
|
BLAKE2b-256 | 109e00dfc2dd82e716a6c6605162a8bb6cf7a0e0dabd00911de3c504ecc9e9bd |
File details
Details for the file kubra-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: kubra-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3608ece7315ba537b26b0c5b90a329ec1e4839ed40a3738a764c86d39cce7c23 |
|
MD5 | 21ed12ac7dbee99e493a48422d67614f |
|
BLAKE2b-256 | d3a18da98eb0d9ed621f9cd6c62652cb5287b257f5da564fe0029a6e90352cbe |