jeudi 2 décembre 2021

How to scrape data websites like Binance where you don't have direct access to html page?

I want to scrape data (50 best traders) from this URL : https://www.binance.com/fr/futures-activity/leaderboard using the beautifulsoup library from python. The problem is that the requested url does not have the displayed data and I can't scrape the data I want. here's my code:

import requests
from bs4 import BeautifulSoup
  
URL = "https://www.binance.com/fr/futures-activity/leaderboard"
r = requests.get(URL)
  
soup = BeautifulSoup(r.content, 'html.parser')
print(soup)

The printed statement has a lot of missing data. Can anyone help me find a solution ? Thanks.




Aucun commentaire:

Enregistrer un commentaire