Web Scraping | Sololearn: Learn to code for FREE!


Web Scraping

Hi guys. New to this but here is the html I’m trying to scrape from. I specifically want the number 15.28. Here is my code ass well. Giving me nothing in return. Thanks </div> <div class="quote-price"> <span id="USD_ZAR-b-int" class="quote-base-price">15.28</span> <span id="USD_ZAR-b-pip" class="pip" style="color: rgb(102, 102, 102);">01</span> <span id="USD_ZAR-b-ette" class="quote-pippette" style="color: rgb(102, 102, 102);">7</span> </div> import bs4 import requests from urllib.request import urlopen as uReq from bs4 import BeautifulSoup as soup url1 = 'https://www1.oanda.com/currency/live-exchange-rates/USDZAR/' uClient1 = uReq(url1) page_html1 = uClient1.read() uClient1.close() page_soup1 = soup(page_html1, "html.parser") data = page_soup1.find("div", { "class" : "quote-price" })

1/9/2021 8:27:36 AM


1 Answer

New Answer


Did you checked the source code ? Well I did and didn't found any value in that piece of code you are trying to extract