ai-to-ai / Auto-Gmail-Creator

Open Source Bulk Auto Gmail Creator Bot with Selenium & Seleniumwire ( Python ). Feel free to contact me with Django/Flask, ML, AI, GPT, Automation, Scraping.
https://gptlawyer.pro
462 stars 248 forks source link

Bot gets stuck at username field #32

Open gameuser1982 opened 9 months ago

gameuser1982 commented 9 months ago

The bot gets stuck at username field. Gmail pre-generates a few username plus includes the option to make your own. This seems to be a new form field as the bot doesn't recognize it and tries to click next resulting in gmail throwing an error. The bot then loops back to the beginning and attemps to create a new account.

Any fix for this? Is there a way to run this without proxy so I can avoid the sms verificaiton?

xD-E-A-T-Hx commented 9 months ago

What error does gmail throw. Can you please share.

Also to prevent proxies, comment out the line

seleniumwire_options['proxy'] = proxy_options

Should do the trick.

gameuser1982 commented 8 months ago

What error does gmail throw. Can you please share.

Also to prevent proxies, comment out the line

seleniumwire_options['proxy'] = proxy_options

Should do the trick.

Apologies for the delay in response, and thank you again for taking the time to reply.

I just tried it again now and it seems to be going through fine. If I see it again I'll let you know and take screenshot, and then run it a second time with python debugger. Thanks for helping the community, I see you are very active here and did a lot of contribution to this bot in addition to the original dev.

gameuser1982 commented 8 months ago

Okay I am reopening this because I have been able to catch circumstances where the bot doesn't fill out the username field: Screenshot (1846)

In the above example the bot press to hit next instead which causes gmail to throw up an error. Eventually the bot gives up and starts over. Issue open happens from time to time. Often times the username creation page is the one the bot expects and fills it out fine.

Also some of the free proxies from that free proxy library seem to present a different sign up page which confuses the bot:

Screenshot (1842) Screenshot (1843)

xD-E-A-T-Hx commented 8 months ago

, I see you are very active here and did a lot of contribution to this bot in addition to the original dev.

Thank you. I work in my own project and just bounce here to help members out.

I'd assume the different pages that are loaded are due to the regions the free proxies go from. I prefer to use my own private proxies for this type of thing then I'm guaranteed certain conditions like location, language etc.

Next the username issue. I'd personally say there is a problem with the bot finding the correct element. Wether this is due to the time it takes to load the page (proxy delay) or just python being python lol. Maybe change the delays to wait a bit longer. I think mine are personally set between 4 and 12 seconds. Not been on it in about 2 weeks so not 100% sure what it's set to.

ProfoundPenguin commented 8 months ago

replacing "username_select":'//[@aria-posinset="3"]', with "username_select":'//[@id="view_container"]/div/div/div[2]/div/div[1]/div/form/span/section/div/div/div[1]/div[1]/div/span/div[3]',

should solve the issue Cheers