简体   繁体   English

如何使用Splinter Python登录Twitter

[英]How to log into Twitter with Splinter Python

I'm working with splinter and Python and I'm trying to setup some automation and log into Twitter.com 我正在使用splinter和Python,并且尝试设置一些自动化并登录Twitter.com

Having trouble though... 虽然有麻烦...

For example the password field's "name=session[password]" on Twitter.com/login 例如,Twitter.com / login上的密码字段的“ name = session [password]”

and the username is similar. 和用户名相似。 I'm not exactly sure of the syntax or what this means, something with a cookie... But I'm trying to fill in this field with splinters: 我不确定语法或它的含义,有些是带有cookie的。。。但是我正在尝试用碎片填充此字段:

browser.fill('exampleName','exampleValue') browser.fill('exampleName','exampleValue')

It isn't working... Just curious if there is a work around, or a way to fill in this form? 它没有用...只是想知道是否有解决方法或填写此表格的方法?

Thanks for any help! 谢谢你的帮助!

What's the purpose of doing this rather than using the official API? 这样做而不是使用官方API的目的是什么?

Scripted logins to Twitter.com are against the Terms of Service, and Twitter employs multiple techniques to detect and disallow them. 脚本式登录Twitter.com违反服务条款,并且Twitter采用多种技术来检测和禁止它们。 Accounts showing signs of automated login of this kind are liable to suspension or requests for security re-verification. 具有这种自动登录迹象的帐户可能会被暂停或要求重新验证安全性。

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

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