TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Twitter from the command line in Python using OAuth - step-by-step howto

55 点作者 jmillerinc将近 15 年前

5 条评论

pilif将近 15 年前
This just goes to show how badly suited OAuth is for desktop applications: Basically, what ever you do, you will need to direct your users over to a browser (or embed one) and they'll have to deal with strange "passcodes" or whatever you want to call it.<p>This is much more difficult for a user to understand ("why can I give twitter my password, but in this client here, I have to do this strange dance? What am I supposed to do now?").<p>In most of the client apps, the issue of having to enter your password is a non-issue as there's no need for a third-party to know it.<p>In the case of desktop apps, IMHO, OAuth does nothing but makes the lives of both client developers and users harder.
评论 #1394737 未加载
ck2将近 15 年前
After setting up Twitter which uses OAuth 1.0, try Facebook's OAuth 2.0 - it's amazingly easy in comparison since it doesn't use secrets, simply relying on HTTPS's SSL encryption instead.<p><a href="http://developers.facebook.com/docs/authentication/" rel="nofollow">http://developers.facebook.com/docs/authentication/</a><p>Soooo much easier.
paulgb将近 15 年前
Thanks Jeff, this is exactly what I've been looking for. I found out about twitter killing basic auth today, but all the documentation seems to assume you have a web app. I just run a simple RSS scraper to twitter feed script on a cron job, so this is helpful.
评论 #1394285 未加载
jot将近 15 年前
Twitter have released a nice curl-like tool for using OAuth on the command line, it's called twurl:<p><a href="http://github.com/marcel/twurl" rel="nofollow">http://github.com/marcel/twurl</a>
cmelbye将近 15 年前
I wonder how difficult it would be to implement xAuth. Presumably, the configuration for username/password could be left intact because xAuth is performed by giving the username/password.