You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Mon, Aug 5, 2019, 1:55 AM rudolphos ***@***.***> wrote:
You need to edit crawler.py script
binary_location - path to chromium browser
executable_path - for chromedriver.exe location
add
from selenium.webdriver.chrome.options import Options
options = webdriver.ChromeOptions()
options.binary_location = "C:\Program Files (x86)\Google\Chrome Dev\Application\chrome.exe"
driver = webdriver.Chrome(options = options, executable_path="chromedriver.exe")
driver.get('http://google.com/')
print("Chrome Browser Invoked")
driver.quit()
change (because chrome_options is deprecated)
options.add_experimental_option("mobileEmulation", mobile_emulation)
options.add_argument('--headless')
#chrome_options.add_argument('--disable-gpu')
browser = webdriver.Chrome(options=options)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACQVU3PS4PWM4XEWIF5G7O3QC5T5ZANCNFSM4IJGQ2WQ>
.
rudolphos
changed the title
If you're using non-standard chrome version
If you're using non-standard chrome version [Windows]
Aug 5, 2019
options.binary_location = "" can be empty, then it selects default chrome installation, but leaving in executable_path="chromedriver.exe" might break script on linux.
This version is for windows, and only if chromedriver.exe is in the same folder as crawler.py.
You need to edit
crawler.py
scriptbinary_location
- path to chromium browserexecutable_path
- for chromedriver.exe locationadd
change after
def generate_image
(becausechrome_options
is deprecated)from
to
The text was updated successfully, but these errors were encountered: