Important note: Due to the cessation of service by the data interface, the maintenance of this project has officially ceased on July 14th. May all of you be well in the future
This repo holds the code for crawling the latest news on the pneumonia virus from the Internet
The content of the crawling includes the number of confirmed cases, the number of suspected cases, the progress of relevant research (source of infection, route of transmission, etc.), the number of infected cases in various provinces and the latest 3 real-time news
If you don't see your province in an infected province, it may be because no cases have been found, but that doesn't mean you can let your guard down
It may be faster for domestic users to download EXE files through this link
Remember, don't use it too often, because the interface has a anti-crawl mechanism, which may cause your IP to be blacklisted. If you are blacklisted, you can't get the information. Note: frequent use refers to using the program more than twice in one second
- The data interface was replaced
- The code has been refactored and now looks cleaner
The function of 2019-ncov-timer. py program is to crawl the data at 0:00 am every day, and save it in the current sheet with the date of the day as the sheet name. The program was written to make it easier for researchers to analyze data
Please read the following notes carefully
- You need to make sure that when the program is running, 2019- ncov.xlsx this Excel file is closed
- It needs to be run before 0 a.m. every day to make sure the program is running until it says, "file was written successfully."
- Run directly, and the Excel directory generated is the same as the directory where the program runs
Part of the data in Excel are as follows:
- Fixed some bugs caused by changes in web source code
- Added the situation of the outbreak abroad
- Dxiang doctor website source code modification has been adapted
- Updated crawler location elements
- Removed the imformation about me
- Updated crawler location elements
- Updated province information display, now in tabular form
- Support to search for relevant information in a province
- The lilac doctor data interface was used
This project was written by me after staying up late for 2 hours in the evening. I just hope to call on all of you to give full play to your strengths, use what you have learned and do something within your capacity for the prevention and control of the epidemic.
My power is limited, you can help optimize the code to make it simpler, or you can do some awesome projects, such as data visualization of epidemic transmission. I will also continue to improve the project, welcome to ask more questions. Thanks
I'll soon deploy the data I've crawled to the server as json, so you can call it