Skip to main content

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.

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.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

kubra-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file kubra-0.0.1.tar.gz.

File metadata

  • Download URL: kubra-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for kubra-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7df51c6c996bb7f86c2719af9b41c7f1c2fab872c4ded1804278db672f7a2f9b
MD5 0da1b6abb87faacaa12e0f61edad6852
BLAKE2b-256 0c71ab01d59c5491f8b8ca475b094ef4898f46330ce10ceffc7be92182f2c4fe

See more details on using hashes here.

File details

Details for the file kubra-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kubra-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for kubra-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4c4e0923d9f6a0393dcdb99bc9b9e1601dcb1338d5d610f59ca6a9e0a43e01e
MD5 50434fc9a9ca8329317a704be7427758
BLAKE2b-256 d579fdf0244fc787d1e8956d4029b5add69c0bc4a8a65f5e1341c5ea7157c0bc

See more details on using hashes here.

Supported by

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