xjdeng / pinterest-image-scraper

Takes the URL to a Pinterest board and returns a List of all of the image URLs on that board.
229 stars 60 forks source link

NameError: name 'ph' is not defined #19

Open karolproksa opened 3 years ago

karolproksa commented 3 years ago

images = ph.runme("https://www.pinterest.com.au/natalie_jane7/outdoor-portrait-photography/") Traceback (most recent call last): File "", line 1, in NameError: name 'ph' is not defined s.download(images) Traceback (most recent call last): File "", line 1, in NameError: name 'images' is not defined images = ph.runme("https://www.pinterest.com.au/natalie_jane7/outdoor-portrait-photography/") Traceback (most recent call last): File "", line 1, in NameError: name 'ph' is not defined ph = s.Pinterest_Helper("ivihhxhwmmfbsfcotl@wqcefp.online" , "my_password_here") Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pinterest_scraper/scraper.py", line 58, in init emailElem = self.browser.find_element_by_name('id') File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 496, in find_element_by_name return self.find_element(by=By.NAME, value=name) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 976, in find_element return self.execute(Command.FIND_ELEMENT, { File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [name="id"]

Aquahugs commented 3 years ago

This error still exist