I want to scrape this page https://www.sofascore.com/betting-tips-today I created code with selenium but don't work:
from bs4 import BeautifulSoup
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome(executable_path=r"C:/chromedriver.exe") #, options=options)
url = "https://www.sofascore.com/betting-tips-today"
driver.get(url)
WebDriverWait(driver, 60).until(EC.presence_of_element_located((By.CSS_SELECTOR,'.fsFjfS'))) #wait until the element be present
time.sleep(5)
soup = BeautifulSoup(driver.page_source, 'html.parser')
It return this error:
raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:
I tried without Wait but don't return anything.