Skip to main content

A module designed to automate the extraction of follower counts and post details from a public Facebook page.

Project description

MetaDataScraper

MetaDataScraper is a Python package designed to automate the extraction of information like follower counts, and post details & interactions from a public Facebook page, in the form of a FacebookScraper object. It uses Selenium WebDriver for web automation and scraping.

Installation

You can install MetaDataScraper using pip:

pip install MetaDataScraper

Make sure you have Python 3.x and pip installed.

Usage

To use MetaDataScraper, follow these steps:

  1. Import the FacebookScraper class:

    from MetaDataScraper import FacebookScraper
    
  2. Initialize the scraper with the Facebook page ID:

    scraper = FacebookScraper("page_id")
    
  3. Scrape the Facebook page to retrieve information:

    result = scraper.scrape()
    
  4. Access the scraped data from the result dictionary:

    print(f"Followers: {result['followers']}")
    print(f"Post Texts: {result['post_texts']}")
    print(f"Post Likes: {result['post_likes']}")
    print(f"Post Shares: {result['post_shares']}")
    print(f"Is Video: {result['is_video']}")
    print(f"Video Links: {result['video_links']}")
    

Features

  • Scraping: Extracts followers count and post details (text, likes, shares, video links) from Facebook pages.
  • Flexibility: Handles various post structures and video formats on Facebook pages.
  • Headless Mode: Runs in headless mode for silent scraping without UI interference.

Dependencies

  • selenium
  • webdriver_manager

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metadatascraper-0.0.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

MetaDataScraper-0.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file metadatascraper-0.0.1.tar.gz.

File metadata

  • Download URL: metadatascraper-0.0.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for metadatascraper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 43320c830c3d46e38485aac58ab39b25fc03cc9857626b7dbf9bcba4f03f48d8
MD5 1159d0dd58b98a17951020b55b48c848
BLAKE2b-256 d8fa043bd30b87a0673d81f032d2f4dcc2c0557f842d883ee1f98be871db3cdf

See more details on using hashes here.

File details

Details for the file MetaDataScraper-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for MetaDataScraper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb42577abbf1bf805ff353be301960aa8552016ecbfd913a49fb394c91b5b6cc
MD5 ba1ee5b85af48e541c1520a9c38a9b89
BLAKE2b-256 01578db26e5b63885ce0734869621ca1a82076140ad03492f9bea59972b698f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page