Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.
/ coronaflight-hkg Public archive

😷 Crawler and history manager for dangerous, coronavirus-infected flights to Hong Kong (VHHH)

License

Notifications You must be signed in to change notification settings

poyea/coronaflight-hkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mask

coronaflight-hkg deprecated Node.js crawl trial ESLint

coronaflight-hkg and its generated data are now deprecated and will no longer be maintained nor updated. Due to the evolving nature of the COVID-19 pandemic and the changes in travel restrictions and regulations, we are unable to provide accurate and up-to-date information for the Hong Kong region.

We understand that this repository has been a valuable resource for you, and we apologise for any inconvenience caused by this deprecation. However, we believe that it is important to prioritize the accuracy and reliability of the information we provide.

We encourage you to seek out alternative sources for information on travel restrictions and regulations in the Hong Kong region. We also recommend that you follow official government and health organization guidelines for COVID-19 prevention and safety.

Thank you for your understanding and support.

Sincerely,
John Law (@poyea)

Description

coronaflight-hkg is the backend for coronaflight.json, i.e. gist 8ce06b31763379e2084cb2022b88b79a, that is updated continuously. This goes to Centre for Health Protection in Hong Kong and transforms the "dangerous" flights to JSON for future analysis/reporting. A sister gist that contains unique history, coronaflight-history.json, for the data is also maintained, i.e. gist fa1f2988c4f424d3e42b9284e751663f. From the official description, the official piece of data is visible for only 14 days.


Table of Contents

Setup

To run locally,

git clone https://github.com/poyea/coronaflight-hkg.git

Then,

npm install
npm run crawl

Go and see your files in out/dump for dump and out/json for output. Respective latest files are in latest.* in the two folders. Have fun and stay safe!

Cleaning raw

To clean your local raw data and obsolete references,

npm run clean

Document format

In the output, there are two different types of geographical data. Since CHP used path to indicate the departure cities before, some of the data in history contains only path. When they switched to the current approach, only departure cities are recorded. Readers should assume that the destination city is always Hong Kong for those entries with departure.

If you like this, please

  • Star
  • Fork
  • Contribute

Contribution Welcome

File an issue immediately if you find a bug. If you know how to fix it, feel free to open a pull request. Before commiting, you should

npm run lintfix

Source

As said, data are from Centre for Health Protection, Hong Kong Government.

Disclaimer

The owner owns the code, but not any entry of the data. Please use the data at your own discretion and always refer to CHP's offical document for fact.

License

MIT