This repository contains a Python script designed to scrape posts from Facebook search using a dummy account for login. The script will take inputs, provided by the user, specifying the keywords for the search. Then selenium will automate the process of searching posts and extracting post contents.
-
Clone the Repository:
git clone https://github.com/Srinjan03112001/FB-Search-Scraper.git
-
Install Dependencies:
Navigate into the cloned directory and install the required dependencies using pip:
pandas selenium
In order to run this code, the required system must have mozilla firefox browser and its respective web driver file called the 'geckodriver'. Install them and copy the path of the gecko driver to use it in the code.
-
Run the Script:
Execute the script
Facebook Scraper.ipynbwith Python using jupyter notebook. -
Output:
The scraped posts will displayed in a tabular format.
- Ensure that you have a dummy Facebook account set up for scraping purposes. Do not use personal or sensitive accounts.
- It is recommended to review Facebook's terms of service and scraping policies before using this script for any commercial or large-scale purposes.
- Use responsibly and considerate of Facebook's platform policies and guidelines.
- The code is still a prototype, might have some bugs.
This script is provided for educational and research purposes only. The developers are not responsible for any misuse of this script. Use at your own risk.