Closed milo-trujillo closed 6 years ago
Two options here:
Parse the tweet manually, use a regular expression to extract usernames from the tweet
See if the tweet JSON has an array of mentioned users, and extract that field instead
Let's aim for the second option. If we're lucky it's in the form of twitter IDs instead of usernames, and we can just use those everywhere.
Task complete and pushed to master. Unfortunately the tweets do not contain mentions in the JSON, so I used a regex on the body text.
Two options here:
Parse the tweet manually, use a regular expression to extract usernames from the tweet
See if the tweet JSON has an array of mentioned users, and extract that field instead
Let's aim for the second option. If we're lucky it's in the form of twitter IDs instead of usernames, and we can just use those everywhere.