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:
-
Import the FacebookScraper class:
from MetaDataScraper import FacebookScraper
-
Initialize the scraper with the Facebook page ID:
scraper = FacebookScraper("page_id")
-
Scrape the Facebook page to retrieve information:
result = scraper.scrape()
-
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
Built Distribution
File details
Details for the file metadatascraper-0.0.2.tar.gz
.
File metadata
- Download URL: metadatascraper-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aad95daf06c7dc60acc1e586fdf0839bee661fc1acfd97bf56a0c0f95432e30 |
|
MD5 | 26debf6e5f35e9ab1325cb16bc5d492b |
|
BLAKE2b-256 | 6e95f70a65ef8ec4d5afbf034e37273495a7df11ea24bf3fc871a4a7390ee723 |
File details
Details for the file MetaDataScraper-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: MetaDataScraper-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fef81994bd23203d2b51d3d9741aaf3d46a6b9f5db75c2494542d0e00bc3af4a |
|
MD5 | 3c39b52f33734c112a8e23e1df5ebca1 |
|
BLAKE2b-256 | 598e17f2bf81385a4ee4d07ce3d1942ef919ce5c0b66308f0d1920f358895226 |