bstoilov / py3-pinterest

Fully fledged Python Pinterest client
MIT License
310 stars 107 forks source link

On my i386 pc I can no longer use chromium because of sse3 or chrome #185

Closed MiqueiasDevGames closed 1 year ago

MiqueiasDevGames commented 1 year ago

That's why I'm using GeckoDriver with firefox and it worked, I just needed to modify the code in .local/lib/python3.9/site-packages/py3pin/Pinterest.py

Line 199: driver = webdriver.Firefox(executable_path=GeckoDriverManager().install(), options=chrome_options)

and add the from: from webdriver_manager.firefox import GeckoDriverManager

from selenium.webdriver.firefox.options import Options

remove: from selenium.webdriver.chrome.options import Options

Also needed this here to work: https://github.com/bstoilov/py3-pinterest/issues/183

Edit Pinterest.py as follows

Issue: creds not writing to root. Fix: Rewrite Registry At: Line 135

self.registry = Registry(cred_root, email)

change to

self.registry = Registry(cred_root, username)

Issue: Errors related to find_element_by. This is a deprecated method. Fix: Update method for Selenium4. At: Lines 216 and 217

driver.find_element_by_id(

change to

driver.find_element(By.ID,

At: Line 219

driver.find_elements_by_xpath(

change to

driver.find_elements(By.XPATH,