Open krsecurity opened 3 years ago
Hi,
I am getting exactly the same issue:
Traceback (most recent call last):
File "download_parentzone_photos.py", line 91, in
I can't seem to reproduce this problem - the downloading script works fine for me.
Can you try again and see whether it was some sort of temporary change that ParentZone did? Alternatively, I guess ParentZone might be A/B testing something, and therefore you're getting a different site to me.
I'm getting the same issues here as well.
I run the script, Chrome opens up ParentZone but I just get the login page - should it be logging me in? Even if I quickly paste in credentials the script still errors out:
Traceback (most recent call last):
File "download_parentzone_photos.py", line 91, in
Hmm that is strange - I definitely don't run into that problem.
I'll try clearing my caches and try ParentZone in incognito mode and see if I can reproduce then. I'm about to go away on holiday, but ping me in a while if I haven't responded.
If it helps anyone, I wrote a very crude way of grabbing the images here - https://github.com/krsecurity/ParentZoneImageGrabber
Just need to insert your API key which you can get by viewing the full size of any image on the website (or grabbing a request in something like Burpsuite).
I did some further investigation and think I have now got a bit further forward by changing the xpath variables for login and password to:
email_field = driver.find_element_by_xpath('//[@id="email"]') passwd_field = driver.find_element_by_xpath('//[@id="password"]')
however it still doesn't download the pictures, I suspect this is due to a change in timeline page, but it is beyond my limited programming skills to work out how to fix, the new error is:
Traceback (most recent call last):
File "download_parentzone_photos.py", line 91, in
I am seeing the same problem as well:
Traceback (most recent call last):
File "download_parentzone_photos.py", line 91, in
Hi @robintw, did you manage to recreate this issue? I have had the same result, any help much appreciated:
Traceback (most recent call last):
File "c:/cygwin64/home/download_parentzone_photos.py", line 91, in
Hi,
I'm getting the below issue - is it that the parentzone website has made changes?
Traceback (most recent call last): File "/root/ParentZonePhotoDownloader/./download_parentzone_photos.py", line 91, in
get_parentzone_photos()
File "/usr/lib/python3/dist-packages/click/core.py", line 829, in call
return self.main(args, kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
return callback(args, *kwargs)
File "/root/ParentZonePhotoDownloader/./download_parentzone_photos.py", line 29, in get_parentzone_photos
email_field = driver.find_element_by_xpath('//[@id="login"]/fieldset/div[1]/input')
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 399, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 1012, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="login"]/fieldset/div[1]/input"}
(Session info: chrome=91.0.4472.114)