Skip to content

Srinjan03112001/FB-Search-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Facebook Post Scraper

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.

Usage

  1. Clone the Repository:

    git clone https://github.com/Srinjan03112001/FB-Search-Scraper.git
  2. 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.

  3. Run the Script:

    Execute the script Facebook Scraper.ipynb with Python using jupyter notebook.

  4. Output:

    The scraped posts will displayed in a tabular format.

Notes

  • 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.

Disclaimer

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.

About

This is a prototype code for a scraping mechanism on Facebook using selenium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors