Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fgregg/kubra
Scraper of storm outage data from kubra.io
https://github.com/fgregg/kubra
Last synced: about 1 month ago
JSON representation
Scraper of storm outage data from kubra.io
- Host: GitHub
- URL: https://github.com/fgregg/kubra
- Owner: fgregg
- License: other
- Created: 2023-07-28T17:53:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-05T03:08:02.000Z (over 1 year ago)
- Last Synced: 2024-10-15T09:55:46.109Z (3 months ago)
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubra
Scraper of storm outage data from kubra.ioTo install:
```console
> pip install kubra
```To use:
```console
> kubra --help
Usage: kubra [OPTIONS] INSTANCE_ID VIEW_IDDownload all the outages of a storm event associated with an INSTANCE_ID and
VIEW_ID from kubra.io. Outputs a GeoJSON of outages.Note that the GeoJSON may be a mix of points and polygons.
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
lseThe 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
--raw Return a json array of raw outage data
--help Show this message and exit.
```
## CreditBased on Bret Walker's kubra-scraper: https://github.com/openkentuckiana/kubra-scraper