Skip to content

nCheck/maha_covid_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maha-Covid-Api

Maha-Covid-Api is API for Maharashtra Corona Cases with district wise data. This data is not widely available in other APIs or Website. This data is upload in PDF report format by twitter account of Medical Education & Drugs Department, Maharashtra ( sample report )

Data Extraction :

  • Track daily tweets of @Maha_MEDD account with key words "A daily comprehensive report prepared by MEDD, Maharashtra showing #COVIDー19 situation in the state"
  • Extract the Google Drive url of pdf from tweet and download the pdf on server
  • Extract the Report Table from Pdf using Tabula
  • Apply Data Cleaning to get useful data
  • Update the database
  • Data is automatically using AWS Lambda & AWS Cloudwatch Events

Installation

Maha-Covid-Api requires Python 3.X+ to run. Create a virtual env using Conda or virtualenv install the dependencies and start the server.

$ cd maha_covid_api
$ pip install requirements.txt
$ python app.py

API

PATH METHOD DESCRIPTION
/latest GET Get the latests statistics of all districts/muncipals
/ids GET Get ids of all districts/muncipals to use for history API
/all GET Get all information from database
/history/:id GET Get past 14 days information of particular districts/muncipals

About

Tracking Covid Update of Maharashtra through official tweets of Medical Education & Drugs Department, Maharashtra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors