Session Ready
Exercise

User interest and tweet counts

The metadata components of extracted twitter data can be analyzed to derive insights.

To identify twitter users who are interested in a topic, you can look at users who tweet often on that topic. The insights derived can be used to promote targeted products to interested users.

In this exercise, you will identify users who have tweeted often on the topic "Artificial Intelligence".

Tweet data on "Artificial Intelligence", extracted using search_tweets(), has been pre-loaded as tweets_ai.

The library rtweet has been pre-loaded for this exercise.

Instructions
100 XP
  • Create a table of users and tweet counts.
  • Sort table in descending order based on tweet counts.
  • View the top 10 users who have tweeted the most.