This project visualizes a network of 10 prominent NBA players and 50 of their followers each. It calculates degree distribution, eigenvector centrality and betweenness centrality for the same. It was completed using: Python, NetworkX and NumPy.
Steps to Run Our Code:
---> To create a JSON file for your Twitter Credentials
- Create a folder called Credentials
- In the credentials.py file, replace the '*********' with your Twitter API keys
- Run credentials.py to create a twitter_credentials.json file
---> To create the social_network.pkl and id_map.pkl
- Run the python-twitter-scraper.py
---> To create the adjacency matrix and visualise the network graph
- Run make_matrix.py
---> To calculate network measures
- Run network_measures.py
---> Please Ignore the 'Old' folder
---> Our Id_map.pkl has 614 entries. We did not delete some of the old entries
we scraped earlier. However on re-running the code, this will get re-written