adilo231 / Twitter-Graph-data-extraction-by-location

In this project, the program will construct a graph extracted from real data by exploiting the Twitter API data-set.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter Graph data extraction by location

In this project, the programme will construct a graph extracted form a real data by exploiting the API data-set.

Twitter data extractor

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' :''

Getting started

  1. Enter your Twitter API credentials
  2. Entre the information of the first user
  3. File up the array of locations
  4. Launch the main.py file in your terminal
  5. Enjoy !

Prerequisites

⚠️ This file runs on python 3.8 and depends on the Tweepy library

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/

About

In this project, the program will construct a graph extracted from real data by exploiting the Twitter API data-set.


Languages

Language:Python 100.0%