COVID 19 live tracker web scraper
Ok so Im working on a web scraper that will scrape off data from a website, (This one!) and I managed to scrape off some data, but the data I want wont scrape. Heres what I mean: If you look at the website, you will see around 37M cases as of when this post was created. And when I scrape that data off with this code:
const postJobButton = data('a#valueTot.numbers').text();
it only returns 0, why is that? And ignore the
goodCode.js, it does nothing. I just save my good code there that file.
Here's what happened:
the source code says
0! So where does the actual number come from then? JS, how pesky >:(
hey hey whats this
if you could find a way to
eval() this piece of code you will be able to get covid data!
I don't do JS, but I would recommend Python for web scraping in the future. Literally takes 2 lines of code.
@DynamicSquid I have not coded in Python in so long I forgot how to do some stuff now lol. And I am also going to make a discord bot that keeps track of the live covid count. Im used to node js for networking and discord bots. But thanks! I will try it some time