Skip to main content

A Python package capable of crawling Facebook page information.

Project description

Latest Version Supported Python Versions

Introduction

facebook-page-info-scraper is a Python package that provides a convenient way to crawl information from Facebook pages. It uses Selenium for web scraping and provides functionalities to retrieve page details such as page name, Category, Address, email, followers count, and more.

Installation

Use pip to install the package:

pip install facebook_page_info_scraper

Usage

To use the package, import the FacebookPageInfoScraper class and create an instance:

from facebook_page_info_scraper import FacebookPageInfoScraper

page_url = 'https://www.facebook.com/example-page'

# Create an instance of the scraper
scraper = FacebookPageInfoScraper(link=page_url)
# Scrape page information by providing the page URL

page_info = scraper.get_page_info()

# Print page details
print(f'Page Name: {page_info["page_name"]}')
print(f'Page Category: {page_info["page_category"]}')
print(f'Page website: {page_info["page_website"]}')

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

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

facebook_page_info_scraper-1.1.0.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

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