1
votes

I'm new to web Scraping and can't get the prices i have found them in the terminal but the list appears empty despite this

from selenium import webdriver
from bs4 import BeautifulSoup

driver = webdriver.Chrome()


url = "https://www.kuantokusta.pt/p/6894201/msi-geforce-rtx-3080-ventus-3x-plus-oc-lhr-10gb-gddr6"

driver.get(url)
html = driver.page_source

doc = BeautifulSoup(html , "html.parser")
print(doc.prettify())
prices = doc.find_all(text="EUR")
print(prices)
What is your question? What does "found them in the terminal" mean?mkrieger1
I print the html and found the prices in the html but the last part the find_all says there are no text "EUR" which i know is not true because i found them in the html fileTiago Ferreira
So now your question is "why does find_all not find what I am telling it to find"? Maybe you could prepare a minimal reproducible example of an HTML document which contains what you want to extract with find_all but it doesn't return it.mkrieger1