chrMongeau / repec-twitter

RePEc
8 stars 0 forks source link

Non-existent user_id #2

Closed chrMongeau closed 7 years ago

chrMongeau commented 7 years ago

In some cases the user_id is non-existent, even if Twitter itself is giving those ids! See, e.g., https://twitter.com/intent/user?user_id=744456080168738816

It would be possible to use the nick (that I thought was more problematic) for these cases, but it is probably not worth it.

chrMongeau commented 7 years ago

I found the reason: ids are taken from id (numeric, then converted to character), but they should be taken from id_str (character). See Docs > API Overview > Twitter IDs.

chrMongeau commented 7 years ago

friends/ids is also affected. There is a parameter to pass that "stringifies" ids (stringify_ids).