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

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Create relationship graph from Facebook friends.

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

Go to project directory.
Install required Python modules:

pip3 install -r requirements.txt

Download Firefox webdriver and extract to project directory.
Login to Facebook and save session:

python3 login.py

Usage

Example usage

Get username's friends and their friends:

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

Generate graph:

python3 database.py --generate

Now you can open output folder Friends 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.

Database

To see available options for managing your database:

python3 database.py --help

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 --noscroll or partially scan with --limit.

Releases

No releases published

Packages

No packages published

Languages