Is it possible to use selenium to scrape a page on a webhost? I have a virtualenv with Python and Selenium installed. I have tried:
driver = webdriver.FireFox()
but I get this... Message: 'geckodriver' executable needs to be in PATH.
I downloaded geckodriver.exe and put it into a directory and tried:
driver=webdriver.Firefox(executable_path="/home/user1/public_html/gecko/geckodriver.exe")
but I get this... OSError: [Errno 8] Exec format error
您必须提供目录路径,其中包含geckodriver.exe
driver=webdriver.Firefox(executable_path="/home/user1/public_html/gecko")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.