Software that scrapes & collect users data like posts, photos, info from Facebook .
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 :
-
- Download geckodriver from this link geckodriver and extract it.
-
- Place the path of geckodriver.exe in
myclass.py
in theexecutable_path
variable.
- Place the path of geckodriver.exe in
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.
$ cd Crawler
$ python __main.py__ --url= --n= --pubs= --nb_images= --download=
--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 .
$ python __main.py__ --url="https://www.facebook.com/profile/airdoggo/" --pubs="False" --nb_images=10 --download="True"
-
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)...
MIT