MJo
#1
The from: operator can be used as part of a query to search for tweets by a specific user, specified by their username (the handle).
I am wondering how this query deals with changes of a handle over time. For example, if user 123 has at some point given up the handle “threedigits”, which was then picked up by user 456.
would a query from:threedigits return only tweets by user 456, or also some historical tweets by user 123?
If so, is there any reason to query by username rather than the user’s id?
Thanks!
1 Like
Do you have an example of a user like this? I’d love to test it out too. I was looking for this for twarc too.
MJo
#3
Sadly not yet, I am just curious.
Probably these cases are rather rare, right?
I have not noticed one in the timelines I have looked at.
I could probably create a test case using my own account - I just hope that nobody will steal my handle from under my nose 
1 Like
That raises a different question - what if handles “swap” between two accounts?
I did end up finding an example of a username that’s all numbers that could be mistaken for an id, like https://twitter.com/92536
So there’s the issue of all digit usernames and swapped usernames. Right now we’re handling it like this:
MJo
#5
So I have found a couple of situations where I believe a handle has been moved from one user to another.
I can only find these in a data from the old sampled stream, however.
Using the V2API endpoints (and indeed, when looking up the tweets themselves in other apps) it appears that when a user changes their handle, that change is retroactively applied to all their tweets. Or maybe the current handle is simply linked to the id anytime a request is made?
In any case, I believe that answers my initial question. Looking up tweets from:threedigits will only return tweets from the user who bears that handle currently. And it will also return any tweets from before he adopted that handle, if a change has taken place.
Is that plausible?
As far as the issue with all digit usernames is concerned, that is also an interesting consideration. I will see if i find cases like that.
1 Like