Quantcast
Channel: A better way to extract COVID data from Worldometers - Code Review Stack Exchange
Browsing index pages (3 articles)
↧

A better way to extract COVID data from Worldometers

I was trying to fetch some data (daily new cases and daily new deaths) from Worldometers and I came up with this:import requestsfrom bs4 import BeautifulSoup as bsimport numpy as np import...

View Article


Answer by Zachary Vance for A better way to extract COVID data from Worldometers

Sure. One way would be to use another source. Another might be to separate out the "script" tag (for example, using a bs selector) and at least only use that as the string. Unless you want to run...

View Article


Image may be NSFW.
Clik here to view.

Answer by Reinderien for A better way to extract COVID data from Worldometers

Overall it's an interesting (if a little strange) idea. Why are you re-plotting data locally when the plots have already been rendered to downloadable SVG elements on the website in question?...

View Article
Browsing index pages (3 articles)


Latest Images