Week: Social Networks
Overview
This week you'll learn the basics of network analysis and the popular Python library NetworkX. We'll use graphs to model character interactions in Game of Thrones as well as understand the social networks of US politicians on Twitter.
We'll customize the social networks of US politicians Jupyter notebook for your own goals in a project that will integrate your Twitter API, NLP and network analysis skills. On Friday, we'll review code to see two other common social network analysis. We'll also peek beyond simple static network analysis to see two more sophisticated statistical ML and mathematical models based upon network data.
Applications
-
[Monday]:
-
[Wednesday]:
- scrape_twitter_usgovs_simple - for scraping Followers/Followed per US state governor and combining them with 'source' and 'destination' renamed columns
- Analyzing Social Media Data in Python (Chapters 1-2)
- Postman.com Sign-up
- US Politicians Twitter Network Analysis
- WARNING: Offensive Language: Cyberbulling Twitter
-
[Friday]:
Resources
- Twitter Developer Dashboard
- Twitter API v2 Sample Code
- Getting Started with the Twitter API v2 for Academic Research
- Reddit Authorized Apps
- Introduction to Social Network Analysis 1/5: Main Concepts (15:45)
- Introduction to Social Network Analysis [2/5]: The Origins (11:02)
-
Game of Thrones Summary (7:40) Game of Thrones, Jul 2016
-
D&D and G a daring tale of Dungeons and Dragons and also Graph (23:27)
- Network Analysis with Python/NetworkX (20:40)
- Docker on MacOS
- Docker on Win10+
- Visualize Graph with AlgorithmX Widget in Jupyter
- Twitter Graph in Memgraph
Coding Practice
- AlgorithmX Docs
- AlgorithmX Jupyter Notebook
- NetworkX Geospatial Examples
- Chinese Postman Problem (TSP Variant)
Thanksgiving Break
- US Govs Notebook
- (old - previously assigned)Introduction to Network Analysis in Python
- (new for Thanksgiving break)Analyzing Social Media Data in Python
- What is REST API? Examples and How to Use
Today
- Analyzing Text Similiarity Using SpaCy, networkx
- Network centrality using networkx
- NetworkX API Centrality Metrics - Review and come to next class with explainations and examples of applications
- Twitter Semantic Networks with snscrape