To scrape John Hopkins Coronavirus website by state using Python, you can use BeautifulSoup library to scrape the data and pandas to store the data in a DataFrame.
Here is an example code to scrape and wrangle the data by state:
main.py900 chars32 lines
This code will give you a DataFrame containing statewise Coronavirus data for the United States, including the number of confirmed cases and the number of deaths. You can further wrangle the data as per your requirement.
gistlibby LogSnag