fp.set_preference('network.proxy.http', PROXY_HOST)
fp.set_preference('network.proxy.http_port', int(PROXY_PORT))
fp.set_preference('general.useragent.override', 'whater_useragent')
fp.update_preferences()
return webdriver.Firefox(firefox_profile=fp)
Scraping in Python - Preventing IP ban