BeautifulSoup find method returns empty [closed]

-3

I did a web scraping program in Python to check the price of Bitcoin on some exchanges , however the field I'm trying to download is left blank.

In case, I'm trying to get the data is between the tags <div class="info"> and </div> , however when running the program, the field appears blank.

The site used for testing is https://poloniex.com/exchange#usdt_dash

import requests
from bs4 import BeautifulSoup
page = requests.get("https://poloniex.com/exchange#usdt_dash")
soup = BeautifulSoup(page.content, 'html.parser')
print(soup.find(class_='info'))
    
asked by anonymous 18.12.2017 / 15:14

1 answer

0

You can use the find_all method, filtering by class info and div element. It would look something like this:

soup.find_all("div", class_="info")

Returns a collection of elements. You have to check what you want, since on this page you have several div s with the same class .

It may be helpful to documentation .

    
26.12.2017 / 02:54