简体   繁体   English

Gmail 帐户在使用 Python Selenium 登录期间被阻止

[英]Gmail account blocked during logging in using Python Selenium

I just finished a Python Selenium script to automate Gmail accounts creation, using 5SIM API to verify and receive verification code.我刚刚完成了一个 Python Selenium 脚本来自动创建 Gmail 帐户,使用 5SIM ZDB974238714CA8DE634A7 验证和接收验证码Everything is working fine and emails are created, but the problem is sometimes when I try to login with the created emails, Google block the account cause they know I'm using a bot, and I searched and found that using the same IP for multiple accounts creation can cause this too, so for each email I'm creating, I'm changing and using a different proxy (but sometimes even the proxy I use is already used before by someone else and my account is again blocked) or maybe the speed of creation?一切正常并创建了电子邮件,但问题是有时当我尝试使用创建的电子邮件登录时,Google 会阻止该帐户,因为他们知道我正在使用机器人,我搜索并发现多个使用相同的 IP帐户创建也可能导致此问题,因此对于我正在创建的每个 email,我正在更改并使用不同的代理(但有时甚至我使用的代理也已被其他人使用,并且我的帐户再次被阻止)或者创作速度? Google page:谷歌页面:

冻结帐户

If someone already got this error or found a solution please share.如果有人已经收到此错误或找到解决方案,请分享。

This error message...此错误消息...

您的帐户已被禁用

...implies that your Google Account has been disabled as being the account owner you haven't followed the Google policies of: ...表示您的Google 帐户已被禁用,因为您没有遵守以下 Google 政策的帐户所有者:


This usecase这个用例

In your usecase using Selenium presumably your account got disabled due to either of the following reasons:在您使用Selenium的用例中,您的帐户可能由于以下任一原因而被禁用:

  • Use of multiple accounts for abuse : You have used automated bots to create fake accounts.使用多个帐户进行滥用:您使用自动机器人创建虚假帐户。
  • Automatic messages : Sending messages automatically through robodialing.自动消息:通过机器人拨号自动发送消息。
  • Impersonation & misrepresentation of identity : Impersonate a person or organization or misrepresent yourself.冒充和歪曲身份:冒充个人或组织或歪曲自己。

Solution解决方案

You need to take some measure so your program doesn't gets detected as a following either of the approaches:您需要采取一些措施,这样您的程序就不会被检测为遵循以下任何一种方法的

  • Change Google Chrome user agent while using Selenium.使用 Selenium 时更改 Google Chrome 用户代理。

You can find a relevant detailed discussion in Way to change Google Chrome user agent in Selenium?您可以在 Selenium 中更改 Google Chrome 用户代理的方式中找到相关的详细讨论?

  • Use rotating proxies to drive Selenium.使用旋转代理驱动 Selenium。

You can find a relevant detailed discussion in How to rotate Selenium webrowser IP address您可以在如何旋转Selenium webbrowser IP地址中找到相关的详细讨论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM