Don't get page in setup phase
This commit is contained in:
parent
6ca88dfd94
commit
8241702fb1
@ -18,15 +18,12 @@ from bs4 import BeautifulSoup
|
||||
|
||||
graph = nx.DiGraph()
|
||||
|
||||
##### Set up WebDriver with Chrome and get the page #########
|
||||
##### Set up WebDriver with Chrome ##########################
|
||||
|
||||
chrome_options = Options()
|
||||
chrome_options.add_argument('--headless') # Start headless so we can run on a server overnight
|
||||
|
||||
driver = webdriver.Chrome(executable_path=CHROMEDRIVER_PATH, chrome_options=chrome_options)
|
||||
driver.get("https://soundcloud.com/lacheque")
|
||||
soup = BeautifulSoup(driver.page_source, "lxml")
|
||||
driver.quit()
|
||||
|
||||
##### Do stuff ##############################################
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user