Python Forum
web scrape not returning number correctly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
web scrape not returning number correctly
#3
Look at Web-scraping part-2 why do i not get all content.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import time

#--| Setup
options = Options()
options.add_argument("--window-size=1980,1020")
options.add_argument("--user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.50 Safari/537.36")
options.add_argument("--headless")
browser = webdriver.Chrome(executable_path=r'chromedriver.exe', options=options)
#--| Parse or automation
browser.get('https://www.vivino.com/search/wines?q=Kerner+2017')
price_all = browser.find_elements_by_css_selector('span.wine-price-value')
print(price_all[0].text)
Output:
115,50
Reply


Messages In This Thread
RE: web scrape not returning number correctly - by snippsat - Sep-18-2019, 06:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  scrape data 1 go to next page scrape data 2 and so on alkaline3 6 5,253 Mar-13-2020, 07:59 PM
Last Post: alkaline3

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020