Skip to content

A web scraping tool that can extract data from Facebook profiles

Notifications You must be signed in to change notification settings

hamidurrk/social-media-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Profile Scraper

Welcome to the Facebook Profile Scraper! This repository contains the code for a web scraping tool that can extract data from Facebook profiles.

Features

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

Installation

  1. Clone the repository: git clone https://github.com/hamidurrk/social-media-scraper.git
  2. Install the required dependencies: pip install -r requirements.txt

Usage

  1. Create a file named credential.txt in your local machine and add the path.
  2. Open credential.txt and add your Facebook password. Also don't forget to insert the profile info in the code.
  3. Run the script: python src/main.py

Contributing

Contributions are welcome! Please open an issue or a pull request if you have any suggestions or improvements.

About

A web scraping tool that can extract data from Facebook profiles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages