serhattsnmz / turtle

Instagram Photo Downloader
GNU General Public License v3.0
15 stars 7 forks source link

Message: no such element: Unable to locate element: #3

Closed rigatron1986 closed 4 years ago

rigatron1986 commented 4 years ago
DevTools listening on ws://127.0.0.1:65098/devtools/browser/6db22793-d442-4a75-a77a-78c8c1fad300
Username and Password are correct.
-----------------
Username for Photos : mahesh.waran.75
Folder name (Leave empty for Instagram username) :
$ USER : mahesh.waran.75
Getting user...
Listing stories...
1 photos found.
> 1 < links found.
-----------------
How many stories do you want to download?
Give number -> For downloading the number of stories
Give '0'    -> For downloading all stroies
Live empty  -> For downloading last stories you do not have
Give input : 0
## (ERROR) : Message: no such element: Unable to locate element: {"method":"css selector","selector":"meta[property="og:image"]"}
  (Session info: chrome=79.0.3945.130)
 - Type : <class 'selenium.common.exceptions.NoSuchElementException'> - Line : 311
Browser closed successfuly.
serhattsnmz commented 4 years ago

Hi @rigatron1986 ,

I've checked the issue, but did not get any problem. Can you check your installed Chrome version and make sure you use the right version of ChromeDriver.

I recommend you to update your chrome to version 80 and download same version of ChromeDriver.

If issue is still continue, please let me updated.

Thanks.

serhattsnmz commented 4 years ago

Hi @rigatron1986 ,

I've checked the exception again and seen that it raised because of there is no user. I changed the exception message, you'll see the meaningful error after that if there is no user, such as this case.

Thanks.

rigatron1986 commented 4 years ago

hi it was able to find all the pictures but when i enter the no of stories it get that error, i did update it to the chrome version 80

Listing stories...
12 photos found.
24 photos found.
36 photos found.
48 photos found.
60 photos found.
72 photos found.
84 photos found.
96 photos found.
107 photos found.
> 107 < links found.
-----------------
How many stories do you want to download?
Give number -> For downloading the number of stories
Give '0'    -> For downloading all stroies
Live empty  -> For downloading last stories you do not have
Give input : 107
## (ERROR) : Message: no such element: Unable to locate element: {"method":"css selector","selector":"meta[property="og:image"]"}
  (Session info: chrome=80.0.3987.87)
 - Type : <class 'selenium.common.exceptions.NoSuchElementException'> - Line : 330
serhattsnmz commented 4 years ago

Hi @rigatron1986 ,

I have tried to download photos of a existing user and getting no error. Can you share with me the user which you get error ?

### Instagram Photo Downloader ###

----------------------------------

Driver : Chrome
-----------------

DevTools listening on ws://127.0.0.1:55265/devtools/browser/0c7551d9-dc29-402a-aa3b-c5d294849ce3
Username and Password are correct.
-----------------
Username for Photos : serhattsnmz
Folder name (Leave empty for Instagram username) :
$ USER : serhattsnmz
Getting user...
Listing stories...
12 photos found.
24 photos found.
31 photos found.
> 31 < links found.
-----------------
How many stories do you want to download?
Give number -> For downloading the number of stories
Give '0'    -> For downloading all stroies
Live empty  -> For downloading last stories you do not have
Give input : 31
> 1 / 31 stories downloaded...
> 2 / 31 stories downloaded...
> 3 / 31 stories downloaded...
> 4 / 31 stories downloaded...