How to setup Crawlera in Firefox Selenium python?

Posted almost 6 years ago by Jiwon Kwon

Post a topic
Answered
J
Jiwon Kwon

def firefox_crawlera():

 profile = webdriver.FirefoxProfile() 

    profile.set_preference("network.proxy.type", 1)

    profile.set_preference("network.proxy.http", "[email protected]")

    profile.set_preference("network.proxy.http_port", 8010)

    profile.update_preferences()

    driver = webdriver.Firefox(firefox_profile=profile, executable_path=r'c:\dropbox\py\webdriver\geckodriver.exe')

    return driver


Proxy doesn't work.


0 Votes

nestor

nestor posted almost 6 years ago Admin Best Answer

Try using Crawlera-headless-proxy as an alternative to Polipo:

https://github.com/scrapinghub/crawlera-headless-proxy 

0 Votes


1 Comments

nestor

nestor posted almost 6 years ago Admin Answer

Try using Crawlera-headless-proxy as an alternative to Polipo:

https://github.com/scrapinghub/crawlera-headless-proxy 

0 Votes

Login to post a comment