Get Premier League fixtures using Python

  from urllib.request import urlopen from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.support.ui import Select from urllib.error import HTTPError import time address = ‘https://www.premierleague.com/fixtures’ try:     url = urlopen(address) except HTTPError as ex:     print(‘Url address is not right.’)     print(ex) else:     print(‘ok’)     bs = BeautifulSoup(url, ‘html.parser’) driver = webdriver.Firefox() driver.get(address) time.sleep(3) cookies_btn = driver.find_elements_by_xpath(‘/html/body/section/div/div’)[0] cookies_btn.click() close_btn = driver.find_elements_by_xpath(‘//*[@id=”advertClose”]’)[0] close_btn.click() #select =  text1 = driver.find_elements_by_class_name(‘matchList’)

1 13 14 15