0

I am creating a script that will have to parse from a JS generated site ( using python ) atleast a 1000 times a day. Parsing it the usual way (using a browser to open it and then get the code) takes me about 30 seconds. Which is not satisfactory. I thought about how to make the process faster and I have an idea - is it possible to create a browser that doesn`t create a window ( ignores the visual part ) and is simply a process in other words an "invisible" browser. What I want to know is if it will be efficient and if there are other ways to make it run faster. Any help is appreciated.

EDIT : Here is the code for my parser

from selenium import webdriver
import re
browser = webdriver.Firefox()
browser.get('http://www.spokeo.com/search?q=Joe+Henderson,+Phoenix,+AZ&sao7=t104#:18643819031')
content = browser.page_source
browser.quit()
Peter Lazarov
  • 281
  • 2
  • 3
  • 12

0 Answers0