Name | kubra JSON |
Version |
0.1.4
JSON |
| download |
home_page | https://github.com/fgregg/kubra |
Summary | command line tool for downloading utility outage data |
upload_time | 2023-09-05 03:11:22 |
maintainer | |
docs_url | None |
author | Forest Gregg |
requires_python | |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# kubra
Scraper of storm outage data from kubra.io
To install:
```console
> pip install kubra
```
To use:
```console
> 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 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
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
--raw Return a json array of raw outage data
--help Show this message and exit.
```
## Credit
Based on Bret Walker's kubra-scraper: https://github.com/openkentuckiana/kubra-scraper
Raw data
{
"_id": null,
"home_page": "https://github.com/fgregg/kubra",
"name": "kubra",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Forest Gregg",
"author_email": "fgregg@datamade.us",
"download_url": "https://files.pythonhosted.org/packages/59/2d/86ab323f91415eec28d8cbe96e1bf8feee2f22dc9e2b2c377849ce68e619/kubra-0.1.4.tar.gz",
"platform": null,
"description": "# kubra\nScraper of storm outage data from kubra.io\n\nTo install:\n\n```console\n> pip install kubra\n```\n\nTo use:\n\n```console\n> kubra --help\nUsage: kubra [OPTIONS] INSTANCE_ID VIEW_ID\n\n Download all the outages of a storm event associated with an INSTANCE_ID and\n VIEW_ID from kubra.io. Outputs a GeoJSON of outages.\n\n Note that the GeoJSON may be a mix of points and polygons.\n\n To find values for INSTANCE_ID and VIEW_ID, go to the outage website, open\n up Developer Tools and look for a network request that looks like:\n\n https://kubra.io/stormcenter/api/v1/stormcenters/4fbb3ad3-e01d-4d71-9575-d45\n 3769c1171/views/8ed2824a-bd92-474e-a7c4-848b812b7f9b/currentState?preview=fa\n lse\n\n The first GUID (i.e. 4fbb3ad3-e01d-4d71-9575-d453769c1171) is the\n INSTANCE_ID. The second GUID (i.e. 8ed2824a-bd92-474e-a7c4-848b812b7f9b) is\n the VIEW_ID.\n\nOptions:\n --cache_dir TEXT Directory to use to cache responses\n --raw Return a json array of raw outage data\n --help Show this message and exit.\n```\n## Credit\n\nBased on Bret Walker's kubra-scraper: https://github.com/openkentuckiana/kubra-scraper\n",
"bugtrack_url": null,
"license": "",
"summary": "command line tool for downloading utility outage data",
"version": "0.1.4",
"project_urls": {
"Homepage": "https://github.com/fgregg/kubra"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c7dae46ad0328902d0e8700e8e4c5e463603cba5c60a6ce2c66c19ce15fbff4a",
"md5": "ada4a9ef3bef1d232a12b159b5c1cf1b",
"sha256": "f837d5630c80bb914794aef07c6982ef70a5089d05662acf71c3270d8ca936d5"
},
"downloads": -1,
"filename": "kubra-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ada4a9ef3bef1d232a12b159b5c1cf1b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8929,
"upload_time": "2023-09-05T03:11:21",
"upload_time_iso_8601": "2023-09-05T03:11:21.292508Z",
"url": "https://files.pythonhosted.org/packages/c7/da/e46ad0328902d0e8700e8e4c5e463603cba5c60a6ce2c66c19ce15fbff4a/kubra-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "592d86ab323f91415eec28d8cbe96e1bf8feee2f22dc9e2b2c377849ce68e619",
"md5": "db2590f4820383680ca0e585cfd896d4",
"sha256": "50303792507353f5e2be8919061a915ef1e322e77084038dce1282aa0b117ffa"
},
"downloads": -1,
"filename": "kubra-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "db2590f4820383680ca0e585cfd896d4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8156,
"upload_time": "2023-09-05T03:11:22",
"upload_time_iso_8601": "2023-09-05T03:11:22.676116Z",
"url": "https://files.pythonhosted.org/packages/59/2d/86ab323f91415eec28d8cbe96e1bf8feee2f22dc9e2b2c377849ce68e619/kubra-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-05 03:11:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fgregg",
"github_project": "kubra",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "kubra"
}