Giter Site home page Giter Site logo

get-facebook-friends-id's Introduction

get-facebook-friends-id

Get all fbid of your friends with Selenium

Getting Started

Step 1: Setup

  • Install Selenium and geckodriver for Firefox.
  • Install BeautifulSoup

Step 2: Config

  • Copy sample_user_config.json to a new file user_config.json.
  • Replace the user and password.

Step 3: Use

  • Run get_fbid.py or get_fbid_better.py. You can see the different in result of 2 files in the Benchmark section.

Benchmark

1. Use facebook. no GUI

time python get_fbid.py
real    0m48.206s
user    0m52.522s
sys     0m5.680s

friendlist: 349

2. Use Facebook Mobile, no GUI

time python get_fbid_better.py
real    0m23.611s
user    0m12.344s
sys     0m2.572s

friendlist: 287

Ground truth: 389

Conclusion

You should use the first method because it has a better result, which is more important than time optimization.

get-facebook-friends-id's People

Stargazers

林果皞 avatar

Watchers

Đặng Quang Minh avatar

Forkers

limkokholefork

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.