Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State Wise Vaccination Coverage #31

Open
thejeshgn opened this issue Mar 8, 2021 · 24 comments
Open

State Wise Vaccination Coverage #31

thejeshgn opened this issue Mar 8, 2021 · 24 comments
Assignees

Comments

@thejeshgn
Copy link
Member

thejeshgn commented Mar 8, 2021

I can see that mohfw is adding State Wise Vaccination Coverage.

https://www.mohfw.gov.in/pdf/CumulativeCOVIDVaccinationCoverage7thMarch2021.pdf

Its backed up daily inside covid19/downloads/mohfw-backup/cumulative_vaccination_coverage

I will look for old ones.

@thejeshgn
Copy link
Member Author

File name is misleading. It sas 7th March 2021. Inside it says As on 08 Mar’21 at 7:00 AM. We are going to name the files as per this datetime. Like 2021-03-08-at-07-00-AM.pdf
`

@naveenpf
Copy link

naveenpf commented Mar 8, 2021

Vaccination coverage by statewise
https://dashboard.cowin.gov.in/

Didn't see stats API
https://apisetu.gov.in/public/marketplace/api/cowin

@thejeshgn
Copy link
Member Author

thejeshgn commented May 1, 2021

@naveenpf it looks like a standard dashboard to give overall stats. I couldn't get the previous data or data on a specific date outside last 30 days. "All" has weekly data.

@thejeshgn thejeshgn self-assigned this May 1, 2021
@sajinh
Copy link

sajinh commented May 7, 2021

If it helps, state wise vaccination data can also be found as JSON document from mygov. Here is how I get them

curl https://www.mygov.in/sites/default/files/covid/vaccine/covid_vaccine_timeline.json?#{itim} -o ./vdata.#{stim}`

time = Time.now
itim = time.to_i
stim = time.strftime("%m-%d-%Y")

@thejeshgn
Copy link
Member Author

thejeshgn commented May 7, 2021 via email

@sajinh
Copy link

sajinh commented May 8, 2021

Yes, it matches except for rows 8--9 ("Dadra & Nagar Haveli" and "Daman Diu"). In the JSON file these are lumped together into one.

The data that I have collected and processed (sorted into states) for my own analysis can be found here:
https://framagit.org/saji_nh/india_2020

@bkamapantula
Copy link

hi @thejeshgn, I'm curious if anyone has made progress on this.. a friend is looking for vaccine doses by gender. I thought I'll check here and see if anyone has already scraped it.

@thejeshgn
Copy link
Member Author

@bkamapantula I have not seen any dataset with gender wise details. Have you?

@thejeshgn
Copy link
Member Author

@sajinh thank you. I will add it to the auto scraper.

@bkamapantula
Copy link

bkamapantula commented May 16, 2021

@thejeshgn not quite the API but here's the request for Arunachal Pradesh, Changlang district (picked from the Network tab on Cowin dashboard site). has to be scraped out

https://api.cowin.gov.in/api/v1/reports/v2/getPublicReports?state_id=3&district_id=20&date=2021-05-16

at gender level this is: vaccination numbers by male/female/other at state, district granularity

@bkamapantula
Copy link

I scraped it, will share it in a few days.

@thejeshgn
Copy link
Member Author

@bkamapantula that will be great.

@bkamapantula
Copy link

hi @thejeshgn, here it is: cowin-vaccination-doses

I update it once in two days.

@thejeshgn
Copy link
Member Author

@bkamapantula So shall I script to download once every other day?

I would like to add it to the repo.

@bkamapantula
Copy link

Yes, that works @thejeshgn

Let me know if you need a specific sheet URL, I can update that sheet with new data.

Currently, I create a new sheet with date as name.

@thejeshgn
Copy link
Member Author

@shuklaayush thank you. Will look and update tonight.

@thejeshgn
Copy link
Member Author

@shuklaayush I usually use the datetime inside the PDF (As on 16 Mar’21 at 7:00 AM) as the file name to keep it consistent.

@thejeshgn
Copy link
Member Author

@shuklaayush added to the repo.

@thejeshgn
Copy link
Member Author

thejeshgn commented Jun 8, 2021

@bkamapantula is there is a possibility of committing the code ? That will help the reproducibility. Basically I want to dump the JSON data as it is into raw data folder. Then may be a script to convert into usable format.

@bkamapantula
Copy link

sure, here it is: https://gitlab.com/bhanu.k/cowin-vaccination-doses

The script isn't auto-setup deliberately to monitor for failed requests.

@thejeshgn
Copy link
Member Author

@bkamapantula thank you. I will have a look.

@bkamapantula
Copy link

@thejeshgn I cleaned up the instructions and updated code with better control for arguments.

Data files are available via Git LFS.

@thejeshgn
Copy link
Member Author

@bkamapantula I have not gotten around to work on it. But its on my list. I will get to it this weekend. Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants