Code Monkey home page Code Monkey logo

facebook-friends's Introduction

Facebook Friends Scraper

This script can scrape list of friends from a Facebook's profile in 1st degree connections and 2nd degree connections. It save a CSV file from the friends. It requires Python 3, Selenium Webdriver and Chrome browser.

Installation

You'll need to have python, pip, and Google Chrome installed to use this tool. Once that's all set up:

  1. Clone this repository
  2. cd into the cloned folder
  3. pip install -r requirements.txt

Set up its config.txt file

Fill your email and password of Facebook's profile.

[credentials]
[email protected]
password=secret

1st degree friend connections (your friends)

  1. Run python facebook-friends.py
  2. It will open a browser window and will fill your username & password automatically.
  3. You should see your Facebook friends page scroll to the bottom.
  4. A CSV file will be created with the data (1st-degree_YYYY-MM-DD_HHMM.csv)

2st degree friend connections (your friend's friends)

Note: This could take days if you have lots of friends!

  1. Get your 1st degree connections first, so you have the 1st-degree CSV file.
  2. Put the 1st-degree CSV in the same folder as python facebook-friends.py
  3. Run python facebook-friends.py 1st-degree_YYYY-MM-DD_HHMM.csv, with the actual filename from the first step.
  4. A browser window will open.
  5. You should the script looping through your Facebook friend's friend pages.
  6. A CSV file will be created with the data (2nd-degree_YYYY-MM-DD_HHMM.csv)

facebook-friends's People

Contributors

deeppbluesky avatar

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.