Need Headless Browser For Armv7 Linux Processor
I need a headless browser for webscraping.Recently i tried 3 different headless browsers(PhantomJS,Firefox,Chrome). When using phantomJS, it gives some error (i.e):Armv7 processor
Solution 1:
Installing lower version of selenium fixed my issue in a similar case.
pip install selenium==2.53.5
Solution 2:
Try the below procedure it worked for me.
geckodriver v0.19.0 the following versions are recommended:
Firefox 55.0 (and greater) Selenium 3.5 (and greater)
Download the geckodriver from https://github.com/mozilla/geckodriver/releases. After downloading, extract it and make it executable(in linux chmod +x path/to/geckdriver
).
from selenium import webdriver
geckoPath = 'path/to/geckodriver'
browser = webdriver.Firefox(executable_path=geckoPath)
browser.get('http://stackoverflow.com')
body_html = driver.find_element_by_xpath("/html/body")
print body_html.text
Post a Comment for "Need Headless Browser For Armv7 Linux Processor"