Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vopaaz/ncov-transportation-subscriber
新型冠状病毒患者同行订阅查询工具。WuHan coronavirus transportation subscriber.
https://github.com/vopaaz/ncov-transportation-subscriber
Last synced: about 1 month ago
JSON representation
新型冠状病毒患者同行订阅查询工具。WuHan coronavirus transportation subscriber.
- Host: GitHub
- URL: https://github.com/vopaaz/ncov-transportation-subscriber
- Owner: Vopaaz
- License: mit
- Created: 2020-02-01T05:35:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T13:28:24.000Z (almost 5 years ago)
- Last Synced: 2024-10-20T05:13:27.228Z (2 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# nCov-transportation-subscriber
新型冠状病毒患者同行**订阅**查询工具。现有工具只能对每一班次进行手动查询,每天查询时输入信息比较麻烦。
此工具可以订阅航班/列车班次等,每次进行查询无需重复输入。WuHan coronavirus transportation subscriber. Most other tools only supports manual querying, where inputting the date and flight number can be troublesome.
This tool enables you to subscribe a flight/train. After that you will not need to input that again.## Installation
With Golang as prerequisite, clone this repo and run `go build`, or download from release (for Windows 10 x64).
## Usage
### Basic
Suppose the built executable is named `ncov.exe`.
#### Subscribe a Trip
```bash
./ncov.exe -d DATE -n NUMBER
````DATE` should be in `MM-dd`, for example `01-12` OR `1-2`. Note that the year is defaulted at 2020.
`NUMBER` is the flight/train number.After subscription, a check will be automatically performed.
#### Check all Subscribed Trips
Simply run
```bash
./ncov.exe
```#### Example
```bash
$ ./ncov -d 1-26 -n TR134
[WARNING] 2020-01-26 TR134 IS REPORTED!
Check successful.$ ./ncov -d 1-25 -n 8L9564
[WARNING] 2020-01-26 TR134 IS REPORTED!
[WARNING] 2020-01-25 8L9564 IS REPORTED!
Check successful.$ ./ncov
[WARNING] 2020-01-26 TR134 IS REPORTED!
[WARNING] 2020-01-25 8L9564 IS REPORTED!
Check successful.$ ./ncov -d 1-24 -n not-dangerous
[WARNING] 2020-01-26 TR134 IS REPORTED!
[WARNING] 2020-01-25 8L9564 IS REPORTED!
Check successful.
```### More
All available options:
```text
Application Options:
/d, /date: Date of your travel
/n, /number: Flight/Train number
/l, /list List all watching records
/a, /add Add a travel record
/x, /delete Delete a travel record
```Note that `list`, `add` and `delete` contradicts each other, and if you choose `add` or `delete`, you should specify both `date` and `number`.
If none of `list`, `add` and `delete` are chosen and a `date` and `number` is provided, it will be automatically selected as `add`.
## Data Source
[新型冠状病毒感染的肺炎确诊患者同行程查询工具](https://h5.peopleapp.com/txcx/index.html),
whose API locates at https://2019ncov.nosugartech.com/data.json