Skip to content

Create relationship graph between friends using data from social media services.

License

Notifications You must be signed in to change notification settings

funcy2267/social-friends-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Create relationship graph between friends using data from social media services.

Supported services

  • Facebook
  • Instagram

Features

  • No API keys are needed.
  • Data can be opened in Obsidian to show graph view of connections between friends.
  • Linux and Windows OS are supported.
  • Multiple scanning threads support.

Requirements

Setup

Install required Python modules:

pip3 install -r requirements.txt

Download Firefox webdriver and extract to project directory.

Usage

Log in

Log in to selected service and save session:

python3 login.py {service}

Example usage

Get username's friends and their friends from Facebook service:

python3 main.py "username" "facebook" --depth 2

Generate graph:

python3 database.py --generate

Now you can open database folder user_data/your_database/ in Obsidian as a vault and see the graph of connections.
You can run scanning multiple times for different users to make your database even larger.

Use --help to check more info about usage of available commands.

Limits

Facebook may temporarily restrict access to viewing people's profiles if too many requests are made. To avoid this, you can use --pause to wait between scans, use --max-scrolls or partially scan with --limit.

Releases

No releases published

Packages

No packages published

Languages