Collect data from Facebook Posts and Pages based on search queries.
This tool allows you to scrape Facebook Posts based on search queries. You can use the end results for NLP tasks.
You will need python 3+.
First clone this repo, then navigate to the folder and install the requirements
git clone https://github.com/AbderrahimAl/Facebook-Scraper.git
cd Facebook-Scraper
pip install -r requirements.txt
Input name | meaning |
---|---|
Username | Your Facebook email |
Password | Your Facebook password |
number_posts_max | How many posts do you want to scrape |
number_comments_max | How many comments do you want to scrape |
This educational tool probably violates Facebook terms of service. Use at your own risk.
We are not responsible for any situations including:
That’s all, thank you for your attention, please the repo to show your support.