Exercises

  1. 13.1 (Percentage of English Tweets) Twitter is truly an international social network. Use the Twitter search API to look at 10,000 tweets. Look at each tweet’s lang property. Count and display the number of tweets in each language.

  2. 13.2 (Percentage of Retweets) Look at 10,000 tweets and determine the percentage of tweets that begin with Twitter’s reserved word RT (for retweet).

  3. 13.3 (Percentage of Extended Tweets) Look at 10,000 tweets and determine what percentage of them are extended tweets.

  4. 13.4 (Basic Account Information) Get the ID, name, screen name and description of a Twitter account of interest to you.

  5. 13.5 (User Timeline) Get the last 10 tweets from an account of interest to you.

  6. 13.6 (Sentiment Analysis) When searching ...

Get Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.