---
title: "Discussion on \"Automate Cowin Vaccine slots Availability using Python\" | Hashnode"
description: "Discussion on \"Automate Cowin Vaccine slots Availability using Python\". Little contribution to make India Covid free nation, Automated Python script to notify cowin vaccine slots availability."
url: "https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Automate Cowin Vaccine slots Availability using Python](https://ayushirawat.com/automate-cowin-vaccine-slots-availablity-using-python?utm_source=hashnode&utm_medium=feed)

Little contribution to make India Covid free nation, Automated Python script to notify cowin vaccine slots availability.

May 13, 2021 · 9 min read · ayushirawat.com  
Updated May 21, 2021  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#general-advice](https://hashnode.com/tag/general-advice)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Ayushi Rawat](https://hashnode.com/@ayushi7rawat)

@ayushi7rawat · Pune

  
[View profile](https://hashnode.com/@ayushi7rawat)

Exploring and Refactoring!

Software Engineer | Technical Blogger | YouTuber | Exploring and Refactoring! | connect with me on Twitter

## Responses 9

Markdown supported · ⌘↵ to post

[S 么 G E](https://hashnode.com/@AshwaniRwt)

[Jul 12, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/60ec7673573c235ee639d69d)

its useful for me, i wish if i can write code like you. so, for now, I'm going to copy-paste this and let's see

[Aman Agarwal](https://hashnode.com/@aman889)

[May 22, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/60a89d185379f65d10b5ed30)

Your code is wrong. Its keep on ringing bell every 3 minutes, instead of that you should keep the bell ringing part here

![Capture.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1621662989693/u4MyGHsNF.png)

[Gagan Agarwal](https://hashnode.com/@TheGagan)

[May 27, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/60a89d185379f65d10b5ed30#reply-60af21ec9b1e2e1dccbca677)

Yeah, I did the same. Now I can leave my script running whole day with 1 min interval and I'll know when any slot becomes available.

[Rishi Pithadiya](https://hashnode.com/@rishii)

[May 18, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/60a38cbbeeabf031a1a96498)

[Ayushi Rawat](https://hashnode.com/@ayushi7rawat) - With Ruby code, you can do it in 10 lines - [rishi.tips/p/find-vaccine-slots](https://rishi.tips/p/find-vaccine-slots/)

[Hasmukh Suthar](https://hashnode.com/@Hasmukh)

[May 17, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/60a27613c9ac202a62291da6)

Does Cowin API still allow real time notification of slots? Many websites like under45 get delayed notifications

[Piyush Badule](https://hashnode.com/@PiyushBadule)

[May 21, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/60a27613c9ac202a62291da6#reply-60a7f84c20d1f45ceb7eceaa)

Yes its realtime as its directly giving data from the same website where we can see the slots in government application. Both are interlinked.

[Amal Shaji](https://hashnode.com/@amal)

[May 15, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609f4cbdb684eb4cd52c7c11)

Nice work 👍.

`Use the requests library to grab the page.`

You mentioned web scraping and how to get the vaccination data using scraping. However, the above script is calling the public API.

[Piyush Badule](https://hashnode.com/@PiyushBadule)

[May 21, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609f4cbdb684eb4cd52c7c11#reply-60a7f7e15379f65d10b5e683)

Yes its public api called from apisetu its return the data in json format you can modify the output according to our resultant output.

I developed a website based on it.

[Manu Mathew](https://hashnode.com/@manumathew)

[May 14, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609ecde147373d4cb056447e)

Good article on web scraping but why should we go for we scraping? Cowin provides it's own APIs for getting the availability real time.

[Gagan Agarwal](https://hashnode.com/@TheGagan)

[May 27, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609ecde147373d4cb056447e#reply-60af224b9b1e2e1dccbca67b)

Yes, this is basically getting data from the api (see the url).

[Sai Laasya Vabilisetty](https://hashnode.com/@Laasya_Setty)

[May 14, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609e98da47373d4cb0563ccb)

That's an amazing read. Wonderful! Thanks for creating this useful one.

[Ayushi Rawat](https://hashnode.com/@ayushi7rawat)

[May 18, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609e98da47373d4cb0563ccb#reply-60a38ed1eeabf031a1a964ef)

Thank you [Sai Laasya Vabilisetty](https://hashnode.com/@Laasya_Setty)

Glad you liked it!

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[May 13, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609da3ab47373d4cb0562125)

this is a really really nice read.. thanks for sharing

[Ayushi Rawat](https://hashnode.com/@ayushi7rawat)

[May 14, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609da3ab47373d4cb0562125#reply-609e15b7b684eb4cd52c5846)

Thank you [Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[May 13, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609d991d47373d4cb0562010)

This will be useful to a lot of people, especially in India.

Thanks for building this and also taking time out to share how you built it. Love it!

[Ayushi Rawat](https://hashnode.com/@ayushi7rawat)

[May 14, 2021](https://hashnode.com/posts/automate-cowin-vaccine-slots-availablity-using-python/609d687c47373d4cb05619d3/comment/609d991d47373d4cb0562010#reply-609e15ae47373d4cb0562800)

Thank you [Edidiong Asikpo](https://hashnode.com/@didicodes)

Just doing my bit!
