In this project, the programme will construct a graph extracted form a real data by exploiting the API data-set.
Extract data from a Twitter account with Python.
Enter a Twitter username and this program will a graph of Twitter based on the starting user and the locations array. For each user the following information will be extracted:
- 'id':'2229718597',
- 'name':'',
- 'screen_name': '',
- 'followers_count':'',
- 'friends_count': '',
- 'checked' :0 ,
- 'location' :''
- Enter your Twitter API credentials
- Entre the information of the first user
- File up the array of locations
- Launch the main.py file in your terminal
- Enjoy !
Install Tweepy
pip install tweepy
Install networkx
pip install networkx
The extracted graph
The extracted graph will be saved in .gexf which is gephi extension. to visualize the graph, we recommend installing Gephi software. https://gephi.org/