I am doing a project using Python for emoji recommendation system. The first step is collecting data from twitter. Specifically, I need tweets using top popular emojis. I am thinking about crawling the website or use the twitter API. But I didn't see anywhere in twitter document about how to search with certain emoji(maybe using its unicode, for example, U+1F602).
Thanks in advance!
The Twitter Rest API specify a call to search/tweets
Returns a collection of relevant Tweets matching a specified query.
The query param q
should be UTF-8 encoded so try passing the UTF-8 encoding of the emojis you are looking for.
Edit: I just went over tweets with emojis in them, they are images, so it doesn't look like you can search on them.