/working_with_twitter

Collection of notebooks written while learning to work with the Twitter API

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

working_with_twitter

Collection of notebooks written while learning to work with the Twitter API (https://developer.twitter.com/en/portal) plot

Notebooks

  1. "twitter_API_intro" is my first attempt at retrieving Twitter data, and contains some detailed explanations on using tweepy to interact with the Twitter API;
  2. "sentiment_twitter" is a naive sentiment analysis experiment on Italian tweets;
  3. "tweet_trends_viz" is a recap of my experiments in tracking Twitter trends in Italy, gather tweets for the top trends and then performing some data visualization on them;
  4. "graphs_scraping" contains a serie of experiments run while trying to develop functions to extract followers and friends informations from the Twitter API;
  5. "graphs_from_twitter" is the refined version of (3) and is my first experimentation with network data (my network of friends and followers from Twitter, actually);
  6. "politics_scraping" is an experiment in scraping information via about italian politicians accounts on Twitter;
  7. "politics_graph_analysis" is a basic analysis of the network of friends of italian politicians on Twitter;
  8. "link_prediction_politics" contains a collection of techniques to perform link prediction using the politicians data collected and analyzed in the previous notebooks.

plot

Python Files

  • "graph_scraping_utils" is a collection of utility functions to scrape data from followers and friends of Twitter users, such that they can be easily converted in network (graph) form.
  • "graph_features_utils" is a collection of utility functions to extract features from graph-structured data.