Skip to content

The Facebook Comment Scraping Tool is a Python script designed to automate the process of extracting comments from a specific Facebook post using Selenium WebDriver. This tool simplifies the task of gathering user comments for analysis or archiving purposes by automating login and scraping operations.

Notifications You must be signed in to change notification settings

shahidx0x/facebook_comment_scraping_tool

Repository files navigation

Facebook Comment Scraping Tool

This is a Python script that uses Selenium WebDriver to extract comments from a specific Facebook post.

Usage

  1. Install the required dependencies by running the following command:

  2. Update the following variables in the code according to your requirements:

  • email: Your Facebook login email.
  • password: Your Facebook login password.
  • post_url: The URL of the specific Facebook post you want to extract comments from.
  1. Run the code using Python:

  2. The script will open a Chrome browser, log into Facebook, navigate to the specified post URL, extract the comments, and save them to a file named "comments.txt" in the same directory as the code file.

Limitations

  • This code assumes that the provided post_url is valid and points to a Facebook post with comments. Make sure to provide a valid URL.
  • The code relies on the structure and elements present on the Facebook website. If there are any changes to the website structure or element locators, the code may need to be updated accordingly.

Feel free to customize and enhance the code according to your specific requirements. Happy extracting!

About

The Facebook Comment Scraping Tool is a Python script designed to automate the process of extracting comments from a specific Facebook post using Selenium WebDriver. This tool simplifies the task of gathering user comments for analysis or archiving purposes by automating login and scraping operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published