简体   繁体   中英

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

Having trouble though...

For example the password field's "name=session[password]" on Twitter.com/login

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:

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?

Scripted logins to Twitter.com are against the Terms of Service, and Twitter employs multiple techniques to detect and disallow them. Accounts showing signs of automated login of this kind are liable to suspension or requests for security re-verification.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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