Isolation
It has been 100 days of Coronavirus today.
On the last day of 2019, China announced it had detected a “pneumonia of unknown cause” in Wuhan, the capital city of China’s Hubei province. It was the first time the world got a notice of what was about to hit. One hundred days later, the novel Coronavirus disease has spread to almost every country and has resulted in billions of people now living under lockdown.
The Coronavirus disease 2019 (COVID-19) is an infectious disease caused by the Severe Acute Respiratory Syndrome Coronavirus 2 (SARS-CoV-2). Since the first mention of it appearing in Wuhan, it has spread now all over the globe, resulting in the ongoing 2019–20 coronavirus pandemic.
So far, over a million people have been infected, close to a hundred thousand people have lost their lives, and the disease is still spreading exponentially. Schools, universities, workplaces and businesses are shut down, people are losing their jobs, and the whole world is slowly falling into to an economic recession.
While I am trying my best to stay productive and positive in my daily life working from home, I often find myself getting distracted by the urge to check for the latest news and stories on the current pandemic situation, or checking out sites like India Covid-19 Tracker, Worldometers Coronavirus, etc. to get the latest statistics on Coronavirus cases. These sites do a great job of presenting a lot of insightful information compiled from official sources. But it would have been nicer if one could also get notified whenever new data gets updated on these sites, so that one doesn’t have to keep checking them back regularly.
The solution is simple. I need to create a script that scrapes these sites for the latest data on coronavirus cases, and find a way to send those updates to me so that I won’t have to manually check them time and again. If we can build a Twitter bot which would run that script at regular intervals to tweet out the stats whenever new data arrives, other people too can make use of this feature by subscribing to that Twitter handle.
Twitter provides an API through which users can interact with their platform programmatically. The first step is to create a Twitter account, and Apply for a developer account on the developer page. After answering out some basic questionnaire, submit it for review to Twitter, which may take a couple of days. Once the verification is complete, we can go ahead and create the app and start developing the code for the bot.
In the next part of this story, we will look into the process of actually developing the bot and hosting it online so that it works round the clock tweeting out the latest stats on Covid cases.
Stay tuned!