Welcome to the Facebook Profile Scraper! This repository contains the code for a web scraping tool that can extract data from Facebook profiles.
It can currently do the following tasks:
- Extract posts from a profile's timeline including date and time
- Scrape number of comments, reactions, and shares for each post
- Download the image in .jpg format if there's any
- Save the scraped data to a SQLite database and image files in the local directory
- Clone the repository:
git clone https://github.com/hamidurrk/social-media-scraper.git
- Install the required dependencies:
pip install -r requirements.txt
- Create a file named
credential.txt
in your local machine and add the path. - Open
credential.txt
and add your Facebook password. Also don't forget to insert the profile info in the code. - Run the script:
python src/main.py
Contributions are welcome! Please open an issue or a pull request if you have any suggestions or improvements.