Skip to content
Advertisement

Getting no data when scraping a table

I am trying to scrape historical data from a table in coinmarketcap. However, the code that I run gives back “no data.” I thought it would be fairly easy, but not sure what I am missing.

JavaScript

Output:

JavaScript

Advertisement

Answer

You don’t need to scrape the data, you can get request it:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement