Git Product home page Git Product logo

facebook-friend-network's Introduction

Facebook friend network

Facebook friend network forked from here.

Requirements:

  • Chrome browser
  • Selenium
  • TQDM
  • DotEnv
  • Webdriver Manager
  • Gephi, unless you have some other plan for drawing your graph

Install command: pip install Selenium python-dotenv tqdm webdriver-manager

How to use:

Getting data:

  1. Check you have all the requirements installed.
  2. Change the Facebook link in .env to your username:
FRIENDS_LIST="https://www.facebook.com/yourUsername/friends"
  1. Run facebook.py.
  2. Log in to Facebook in the pop up window, then go back to the terminal and press enter.

Constructing Graph Using Gephi

  1. Once it has finished, open Gephi and click new project.
  2. Go to Data Laboratory, then edges. Now, import spreadsheet. Select facebook.csv.
  3. Go to Overview. Choose the layout and press play.
  4. Just kinda play around with Gephi until you get something you like :) you can even colour nodes.

Saving Graph

  1. Go to preview to make sure you like how it looks.
  2. File > Export > whatever filetype you want.
  3. Finally you can go to an image editor to draw labels and stuff.

More info:

Currently does not detect facebook friends who do not have usernames. For example, www.facebook.com/user_name is detected, but www.facebook.com/profile.php?id=123456789 is not.

Also ignores friends who have no mutual friends, and those whose accounts are deactivated.

Waits a few seconds before going to different profiles. This makes it slow, but if we go too fast, Facebook will give a temporary ban.

I have tried to reduce the risk of getting a temporary ban, but I can't guarantee anything. If you get banned, it is not my responsibility.

facebook-friend-network's People

Contributors

berkmann18 avatar jupilogy avatar namlim avatar

Stargazers

 avatar Farhan Reynaldi Valerian avatar

Forkers

kuuhaku24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.