Simon Willison’s Weblog

Subscribe

Entries tagged twitter

Filters: Type: entry × twitter × Sorted by date


Twitter API: What is the best data storage mechanism and client library for analysing tweets using Python?

It depends on how much data you intend to collect, and how you intend to then share that data.

[... 182 words]

Is there a way of tracking shortened URLs with Twitter streaming API?

Think about it like this: the whole point of the Twitter streaming API is to get you the tweets as soon after they are posted as possible. If the API were to provide access to the lengthened URLs, it would have to delay emitting a Tweet on to the stream until a resolver had gone through each shortened URL in the tweet and checked to find what it redirects to. This would mean that the speed with which the streaming API could deal out tweets would be dependent on the speed of the third party servers that serve up the redirects. I doubt Twitter would ever want to implement this.

[... 159 words]

How do Twitter apps handle username changes?

Twitter assigns each user a unique numeric ID which does NOT change when the user’s Twitter name changes, so triic number one is to key off that, not the username itself.

[... 150 words]

How do you correctly send the oauth_verifier parameter using python-oauth2 and the Twitter API?

This seems relevant: http://groups.google.com/group/t...

[... 87 words]

Are there any well-known websites that use Facebook connect or Twitter OAuth as the only sign-in solution without its own sign-in password?

Our site http://lanyrd.com/ only accepts Twitter OAuth logins (at least for the moment).

[... 42 words]

Is it possible to link to a Twitter user’s page with their user_id instead of their screen name?

You could always build your own URL to do this as part of your own application—something like http://your-twitter-app.example.... which does a Twitter API lookup for that user and then redirects to http://twitter.com/their-twitter.... You can cache the ID-to-screen-name lookups that you’ve made in the past (not forever though, remember people occasionally change their screen names).

[... 98 words]

Does Twitter use a 3rd party software for rate limiting their APIs? If yes, who’s the 3rd party?

I wrote up a technique for doing simple rate limiting using memcached a while ago, which I later found out was somewhat similar to how the Twitter API does it.

[... 56 words]

Twitter.com 2010 Redesign: What things don’t people like about #newTwitter?

I absolutely love the improved functionality, but I don’t like the way it’s implemented as a heavy single-page JavaScript application. It’s extremely slow to load, which is a big problem for me because I habitually open new tabs with e.g. twitter.com/username in them, and each of those tabs now takes far longer to load and show me information than old Twitter did (especially since I’ve been suffering on very slow hotel WiFi connections recently).

[... 133 words]

Rate limiting with memcached

On Monday, several high profile “celebrity” Twitter accounts started spouting nonsense, the victims of stolen passwords. Wired has the full story—someone ran a dictionary attack against a Twitter staff member, discovered their password and used Twitter’s admin tools to reset the passwords on the accounts they wanted to steal.

[... 910 words]