Python – Web Scraping – Returning CSS Selector 0.

I’m following the automated boring stuff on the entrepreneur, and trying to eliminate the value of the bitcoin from the balance. However, the value I get when using CSS selectors is always 0.

 import requests, bs4
 res = requests.get('https://www.binance.com/en')
 res.raise_for_status()
 
 soup = bs4.BeautifulSoup(res.text)
 elems = soup.select('#top_crypto_table-2-BTC_BUSD > div.css-11d5f40')
 
 elems[0].text.strip()
  
 '0'

Leave a Reply

Your email address will not be published.