smf33 / FlickrFollowerBot

Flickr Follower Bot : Bot for Flickr, in .Net Core, using a Chrome client and Selenium for command it
MIT License
12 stars 2 forks source link

User can't fav anymore #6

Closed aurel2222 closed 4 years ago

aurel2222 commented 4 years ago

Hi, When trying to fav from PhotoToFav List, it faves the first picture and then the following message appears :

GET https://www.flickr.com/photos/xxxxxxxxxxxxxxxxxxxxxxxx/ ACTION STOPED : SEEMS USER (https://www.flickr.com/photos/xxxxxxxxxxxxxxxxxxxxxxx) CAN'T FAV ANYMORE

(the both adresses are the same)

It appears whatever source is used (user flow, explore).

Trying to find what happens, but you're better than me :)

Thanks for help !

aurel2222 commented 4 years ago

It seems it doesn't detect already faved icon. Maybe CSSphotofaved changed But can't find the new one...

Edit : good hypothesis... 👍

In JSON change to this values : "CssPhotoFave": ".fave-view", "CssPhotoFaved": ".fave-star.is-faved",

smf33 commented 4 years ago

Hi, yeah the CssPhotoFaved have been updated by flickr : it isn t anymore a SPAN but a A :-) Nice debug 👍

aurel2222 commented 4 years ago

Hello, I'm reopening the issue because same problem, same messages. But, it doesn't seems the CSS changed... It is able to fav but after few (1 to 5) favs it is stopping.

This time, i'm out of idea :/

Still invistigating but any idea would help :)

thanks a lot.

Maybe it is happening in this part of the code :

// fav issue detection
                if (!inError && !Selenium.GetElements(Config.CssPhotoFaved).Any()) // will wait a little if required because it s an expected state
                {
                    WaitHumanizer();// give a last chance...
                    if (!Selenium.GetElements(Config.CssPhotoFaved, true, true).Any()) // will wait a little if required because it s an expected state
                    {
                        Log.LogWarning("ACTION STOPED : SEEMS USER ({0}) CAN'T FAV ANYMORE", url);
                                inError = true;
aurel2222 commented 4 years ago

after digging, it seems it doesn't detect when a picture is already faved. I think it is coming from the CssPhotoFaved but I can't find the new one. The old one seems to be there too.... :-/

CssPhotoFaved = .is-faved

👍