{"id":18730832,"url":"https://github.com/zxdawn/nmc-crawler","last_synced_at":"2025-04-12T17:33:48.965Z","repository":{"id":152704032,"uuid":"187451282","full_name":"zxdawn/nmc-crawler","owner":"zxdawn","description":"Download figures from National Meteorological Center, China (NMC) website","archived":false,"fork":false,"pushed_at":"2020-02-15T06:53:09.000Z","size":752,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T11:51:10.993Z","etag":null,"topics":["meteorology","nmc","weather-data"],"latest_commit_sha":null,"homepage":"http://www.nmc.cn/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zxdawn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-05-19T08:20:09.000Z","updated_at":"2024-03-07T07:33:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"52f33f2f-9a85-4979-872a-79440fea591b","html_url":"https://github.com/zxdawn/nmc-crawler","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"b6a1dd8de6ec957d921d52b9e347a491f1fff6f4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdawn%2Fnmc-crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdawn%2Fnmc-crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdawn%2Fnmc-crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxdawn%2Fnmc-crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxdawn","download_url":"https://codeload.github.com/zxdawn/nmc-crawler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605131,"owners_count":21132118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["meteorology","nmc","weather-data"],"created_at":"2024-11-07T14:47:14.545Z","updated_at":"2025-04-12T17:33:48.900Z","avatar_url":"https://github.com/zxdawn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nmc-crawler\n## What is it?\n\nScript of downloading figures from NMC website: http://www.nmc.cn/\n\nCurrently, this script supports downloading **weathercharts** and **radar** figures.\n\n## Usage\n\nDownload or clone the repository first\n\n```\ngit clone https://github.com/zxdawn/nmc-crawler.git\n```\n\nCheck the help information\n\n```\npython nmc_crawler.py --help\n```\n```\nUsage: nmc_crawler.py [OPTIONS]\n\n  Download weathercharts and radar figures from NMC.\n  Contact:\n      xinzhang1215@gmail.com\n\nOptions:\n  -k, --kind [radar|weatherchart|ltng]\n                                  Kind of data  [required]\n  -a, --area [all|region|station]\n                                  Region of maps:\n                                  For weatherchart and ltng,\n                                  you don't\n                                  need to specify this parameter.\n                                  [default: region]\n  -r, --resolution [medium|small]\n                                  Resolution of figures  [default: medium]\n  -s, --savepath TEXT             Savepath of figures  [default: ./]\n  -v, --verbose INTEGER           verbose level  [default: 0]\n  --help                          Show this message and exit.\n```\n\nRun the script at the background every hour:\n```\nnohup bash -c \"while true; do python -u nmc_crawler.py -k radar; sleep 3600; done\" \u003e radar.log 2\u003e\u00261 \u0026\n```\n\n## Brief example\n\n1. Download regional radar figures:\n\n   ![radar_1](https://github.com/zxdawn/nmc-crawler/raw/master/examples/radar_1.gif)\n\n2. Download radar figures of all stations:\n\n   ![radar_2](https://github.com/zxdawn/nmc-crawler/raw/master/examples/radar_2.gif)\n\n3. Download weathercharts:\n\n   ![weatherchart](https://github.com/zxdawn/nmc-crawler/raw/master/examples/weatherchart.gif)\n   \n4. Download lightning figures\n\n## Directory structure\n\n```\n├── radar\n│   ├── region\n│   │   ├── chinaall\n│   │   │   └── yyyymm\n│   │   │       └── mmdd\n│   │   ├── dongbei\n│   │   │   └── yyyymm\n│   │   │       └── mmdd\n│   │   ├── huabei\n│   │   │   └── yyyymm\n│   │   │       └── mmdd\n│   │   ├── huadong\n│   │   │   └── yyyymm\n│   │   │       └── mmdd\n│   │   ├── huanan\n│   │   │   └── yyyymm\n│   │   │       └── mmdd\n│   │   ├── huazhong\n│   │   │   └── yyyymm\n│   │   │       └── mmdd\n│   │   ├── xibei\n│   │   │   └── yyyymm\n│   │   │       └── mmdd\n│   │   └── xinan\n│   │       └── yyyymm\n│   │           └── mmdd\n│   └── station\n│       ├── jiang-su\n│       │   ├── chang-zhou\n│       │   ├── huai-an\n│       │   ├── lian-yun-gang\n│       │   ├── nan-jing\n│       │   ├── nan-tong\n│       │   ├── tai-zhou\n│       │   ├── xu-zhou\n│       │   └── yan-cheng\n│       ├── liao-ning\n│       │   ├── chao-yang\n│       │   ├── da-lian\n│       │   ├── shen-yang\n│       │   └── ying-kou\n│       └── ....\n└── weatherchart\n    └── china\n        └── yyyymm\n            ├── cloud-h000\n            ├── cloud-h100\n            ├── cloud-h200\n            ├── cloud-h500\n            ├── cloud-h700\n            ├── cloud-h850\n            ├── cloud-h925\n            ├── radar-h000\n            ├── radar-h100\n            ├── radar-h200\n            ├── radar-h500\n            ├── radar-h700\n            ├── radar-h850\n            ├── radar-h925\n            ├── weatherchart-h000\n            ├── weatherchart-h100\n            ├── weatherchart-h200\n            ├── weatherchart-h500\n            ├── weatherchart-h700\n            ├── weatherchart-h850\n            └── weatherchart-h925\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxdawn%2Fnmc-crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxdawn%2Fnmc-crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxdawn%2Fnmc-crawler/lists"}