下载停电数据工具的命令行工具
项目描述
库布拉
从kubra.io抓取风暴停电数据的抓取器
安装方法
> pip install kubra
使用方法
> 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.
致谢
基于Bret Walker的kubra-scraper: https://github.com/openkentuckiana/kubra-scraper
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源代码分发
kubra-0.1.4.tar.gz (8.2 kB 查看哈希值)
构建分发
kubra-0.1.4-py3-none-any.whl (8.9 kB 查看哈希值)
关闭
kubra-0.1.4.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 50303792507353f5e2be8919061a915ef1e322e77084038dce1282aa0b117ffa |
|
MD5 | db2590f4820383680ca0e585cfd896d4 |
|
BLAKE2b-256 | 592d86ab323f91415eec28d8cbe96e1bf8feee2f22dc9e2b2c377849ce68e619 |
关闭
kubra-0.1.4-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f837d5630c80bb914794aef07c6982ef70a5089d05662acf71c3270d8ca936d5 |
|
MD5 | ada4a9ef3bef1d232a12b159b5c1cf1b |
|
BLAKE2b-256 | c7dae46ad0328902d0e8700e8e4c5e463603cba5c60a6ce2c66c19ce15fbff4a |