我试图用python和selenium编写一个自动程序来创建Instagram自动帐户。我添加了所有的安全选项,甚至Instagram都阻止我创建新帐户。在
我什么都试过了。清理cookies,catch,匿名模式,代理,禁用位置,使用假标题,最后我尝试了一个新的互联网连接(我的智能手机热点)。但Instagram还是阻止了我。如何修改代码以防止Instagram me被检测为我?在
InstaAction类只调用存储。清除()
class MyInstaAction(webdriver.Chrome):
def __init__(self, *args, **kwargs):
super().__init__('chromedriver.exe', *args, **kwargs)
def root(self):
self.get(mpaths.root)
def create_account(self, user):
self.get(mpaths.register)
self.execute_script('localStorage.clear();')
# Finding elements and doing other stuff
“主”安全设置
^{pr2}$有谁能绕过这个问题吗?在
尝试更改用户代理。
options.add_argument("user-agent=YOUR_DEVICE")
相关问题 更多 >
编程相关推荐