Skip to content

Software that scrapes & collect users data like posts, photos, info from Facebook

License

Notifications You must be signed in to change notification settings

ghanmi-hamza/Facebook_Scraper

Repository files navigation

Facebook Crawler



Software that scrapes & collect users data like posts, photos, info from Facebook .


Installation

Install from source

$ git clone https://github.com/ghanmi-hamza/Facebook_Scraper.git
$ python setup.py install

Facebook Crawler requires Webdriver to run. So Please make sure that Firefox is installed + geckodriver :

    1. Download geckodriver from this link geckodriver and extract it.
    1. Place the path of geckodriver.exe in myclass.py in the executable_path variable.

To download data in the specific path don't forget to change it in main.py save_data(dic,dic["name"],data_path") else a folder will be created like the path that i used.


Usage

Command Line :

$ cd Crawler
$ python __main.py__ --url= --n= --pubs= --nb_images= --download=

Options :

  • --url string : Full Url of the profile you want to scrape .
  • --n int : number of pages .
  • --pubs bool : get publication or not .
  • --nb_images int : number of profile images to scrape .
  • --download bool : download data or not .

Example :

$ python __main.py__ --url="https://www.facebook.com/profile/airdoggo/" --pubs="False" --nb_images=10 --download="True"

Data Extracted

  • user_info

    • Name
    • Intro
    • Friends
    • Gender
    • Birthday
  • Events

  • Images

  • Pubs

    • Date
    • Contenu
    • Comments{user,date,comment}

  • If you liked the repo then kindly support it by giving it a star ⭐
  • If there is any bug in the code or if you want any improvement don't hesitate to contact me.

Please Check the test Folder to see the some examples and don't forget to put your facebook id and password as (usr, pwd)...

🌐 Connect


License

MIT

About

Software that scrapes & collect users data like posts, photos, info from Facebook

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published