Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. import requests
  2.  
  3. from selenium import webdriver
  4. from selenium.webdriver.support.ui import WebDriverWait
  5. from selenium.webdriver.support import expected_conditions as EC
  6. from selenium.webdriver.common.by import By
  7. from bs4 import BeautifulSoup as bs
  8.  
  9.  
  10.  
  11.  
  12. chromedriver = r'C:\Users\webdriwers\chromedriver.exe'
  13. d = webdriver.Chrome(chromedriver)
  14.  
  15.  
  16. d.get('https://www.betexplorer.com/next/soccer/')
  17.  
  18. d.find_element_by_xpath('//*[@id="lcmenu"]/a[3]').click()
  19.  
  20. soup = bs(d.page_source, 'html.parser')
  21.  
  22. soup = soup.findAll("td", {"class": "table-main__tt"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement