-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscraper.py
More file actions
26 lines (19 loc) · 782 Bytes
/
scraper.py
File metadata and controls
26 lines (19 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# scrapy.py
"""
Getting started with Selenium
https://www.zenrows.com/blog/selenium-python-web-scraping#wait-for-element
https://medium.com/ymedialabs-innovation/web-scraping-using-beautiful-soup-and-selenium-for-dynamic-page-2f8ad15efe25
To do: follow up on wait time for rendering to DOM
"""
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
options = Options()
options.add_argument('--headless=new')
driver = webdriver.Chrome(
service=ChromeService(ChromeDriverManager().install()),
options=options)
driver.get('https://scrapingclub.com')
driver.quit()
# vim: ai et ts=4 sts=4 sw=4 nu