zytedata / zyte-smartproxy-selenium

A wrapper over Selenium Wire to provide Zyte Smart Proxy Manager specific functionalities.
3 stars 4 forks source link

sample.py hangs / does not work #3

Closed radiocontrolled closed 2 years ago

radiocontrolled commented 2 years ago

I've got a trial subscription & API key. When I run the following (after installing zyte_smartproxy_selenium) nothing happens:

from zyte_smartproxy_selenium import webdriver

browser = webdriver.Chrome(spm_options={'spm_apikey': 'mykey'})
browser.get('https://toscrape.com')
browser.save_screenshot('screenshot.png')
browser.close()

I'm not sure what's going on - thanks

geronsv commented 2 years ago

Hi @radiocontrolled Thanks for the feedback!

By default block_ads_lists was using ['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt']. Those urls have got some issues recently. We have now switched default value to mirrors: ['https://secure.fanboy.co.nz/easylist.txt', 'https://secure.fanboy.co.nz/easyprivacy.txt']. Could you try the new release please?

radiocontrolled commented 2 years ago

Greetings @geronsv. That worked for me, pip uninstalling and re-installing. Thank you.