简体   繁体   English

如何在没有 Oauth 的情况下登录 twitter 获取脚本?

[英]How to log in to twitter without Oauth for a script?

To use OAUTH with python-twitter I need to register a web app, website etc. The program I have is for personal use though.要将 OAUTH 与 python-twitter 一起使用,我需要注册一个 web 应用程序、网站等。我拥有的程序是供个人使用的。 Since basic auth is now defunct and Oauth is not an option due to the requirements is there a work around to log in to twitter using a script?由于基本身份验证现已失效,并且由于要求,Oauth 不是一个选项,是否可以使用脚本登录到 twitter?

I can't imagine that Twitter would alienate everyone who does not have a website/web app from logging in to twitter from a script that is for personal use.我无法想象 Twitter 会疏远没有网站/网络应用程序的每个人从个人使用的脚本登录到 twitter。

If you register your Twitter app as a "Client" app instead of a "Browser" (aka web) app, you can create an application without the need for a live web app.如果您将 Twitter 应用程序注册为“客户端”应用程序而不是“浏览器”(也称为 Web)应用程序,则无需实时 web 应用程序即可创建应用程序。 (Note: you'll still have to store an OAuth key.) (注意:您仍然需要存储 OAuth 密钥。)

Here is a down-and-dirty resource for how it all works and how to accomplish this. 是一个关于它如何工作以及如何实现这一点的低俗资源。

Edit: maybe something like this can help you if you're just looking to fill out a quick personal project.编辑:如果您只是想填写一个快速的个人项目,也许这样的事情可以帮助您。

If you want to access resources at Twitter, even if they are your own, and even if it is just for a "personal script" -> you have to use oAuth.如果您想访问 Twitter 的资源,即使它们是您自己的,即使只是“个人脚本”-> 您必须使用 oAuth。

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

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