Skip to content
Advertisement

unable to scrape table on website using beautifulsoup

I am trying to scrape this table: https://www.coingecko.com/en/coins/recently_added?page=1

Here is my code:

JavaScript

The print(coin,price) fails to print anything. Not sure why, any help welcome :)

Advertisement

Answer

Just use pandas to get the table data.

Here’s how:

JavaScript

Output:

enter image description here

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