Git Product home page Git Product logo

shahidx0x / facebook_comment_scraping_tool Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

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.

Python 57.76% Jupyter Notebook 42.24%
python scraping selenium-webdriver

facebook_comment_scraping_tool's Introduction

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!

facebook_comment_scraping_tool's People

Contributors

shahidx0x avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.