I m using selenium in Python to grab web page's text including those dependent from javascript, but its using firefox or other browser, opens a window and processes very slow like 30 seconds per one page. Can i speedup it somehow?
example of the code is :
gecko_path = r'X:\Programming\geckodriver\geckodriver.exe'
binary = r'C:\Program Files\Mozilla Firefox\firefox.exe'
options = Options()
options.binary = binary
xml_id ="JobDescription"
xml_class ="details-content"
driver = webdriver.Firefox(firefox_options=options, executable_path = gecko_path)
# get web page
driver.get(url)
text = bytes(driver.find_element_by_class_name(xml_class).text.encode('utf-8'))
print(type(text))