User:Satricious/covidstats

NOTE: I have posted about this in Template talk:COVID-19 cases in Asia

Below is a script that I intend to run on Template:COVID-19 cases in Asia, it scrapes https://virusncov.com/ and replaces the wikitext in the template page with updated statistics.

Currently the code is rather unclean as I just whipped this script while I was bored in class but I intend to (hopefully) clean it up soon.

The script is really easy to run, once set up correctly it's almost as simple as clicking a button.

How to run

 * 1) Show your bookmarks bar (Ctrl)
 * 2) Click on create a page, enter the name as 'run covidstats' (or whatever you like), and for the url, first enter , and then copy the code below and paste it after the colon
 * 3) Save that bookmark, click it while on any Wikipedia page and it should work :^) Once you click the button, give it a second or two and it will take you take you to the 'show changes' page with the changes made.