Orelsaada / YouTube-Subpals-bot

A simple bot to automate the process on SubPals
48 stars 27 forks source link

Error not working #2

Open shrivi34 opened 4 years ago

shrivi34 commented 4 years ago

it says iframe not responding in 5 seconds. and says selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[name="channelid"]" screenshot:(https://user-images.githubusercontent.com/27879698/78890173-c5bc2380-7a82-11ea-9d97-8d15fcfbdbba.PNG)

Orelsaada commented 4 years ago

They're changing the iframes very often, for many reasons. Need to find the right iframe again.

Orelsaada commented 4 years ago

Did you register to the site before running the script?

shrivi34 commented 4 years ago

Yes ,I have registered before. Now there is different error. It says: "Refused to display 'https://accounts.google.com/ServiceLogin?uilel=3&service=youtube&passive=true&hl=en-GB&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dpassive%26app%3Ddesktop%26hl%3Den-GB%26next%3D%252Fsignin_passive' in a frame because it set 'X-Frame-Options' to 'deny'.", source: https://www.youtube.com/watch?v=qletMHSAOII (0)"

Screenshot: https://user-images.githubusercontent.com/27879698/79222748-bcadc680-7e75-11ea-98b0-6b7f0d649531.PNG

shrivi34 commented 4 years ago

Stack exchange says: "You may also replace watch?v= with embed/ so http://www.youtube.com/watch?v=eCfDxZxTBW4 becomes http://www.youtube.com/embed/eCfDxZxTBW4" But how do we do that?

Orelsaada commented 4 years ago

Do you entered your gmail account credentials? Do you have on your mail account 2 factor authentication? or maybe another special settings?

shrivi34 commented 4 years ago

I did enter the credentials and no special settings are enabled.

shrivi34 commented 4 years ago

can you mention the chrome,driver and selenium version you used

Orelsaada commented 4 years ago

Selenium: 3.141.0 Chrome driver: 2.38.552522

Orelsaada commented 4 years ago

Try to manually do 1 like & subscribe in Subpals. https://www.subpals.com/

shrivi34 commented 4 years ago

yeah the manual thing works,but not able to subscribe and like automatically.

Orelsaada commented 4 years ago

I just try with a new mail to do it, found out that google tries to identify you, so manually send code to my phone to verify google.

then ran the script again and it worked.

try also to allow "less secure apps" using your gmail : https://support.google.com/accounts/answer/6010255?hl=en

BIRDYwillfly commented 4 years ago

I'm confused on how to use this. I just switched from mac to windows today. Can u explain it in more thorough instructions.

LeandroLimaPRO commented 3 years ago

9

LeandroLimaPRO commented 3 years ago

13