A Python package capable of crawling Facebook page information.
Project description
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
Built Distribution
Hashes for facebook_page_info_scraper-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d672aab3adb3b4cf55c165e85f7b2da19527b00de73a29a3ef9ec9b1f94132 |
|
MD5 | a500046fccf2a62e35628100ae9f455b |
|
BLAKE2b-256 | 214b2c55f8ec8209872f5c79d402a47255377b1e884341f560c4a45bae9c3500 |
Hashes for facebook_page_info_scraper-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd085d5f438ad19f4baa31fc27094efef8fd55dd17cf61a5d9d35d5198a1b88a |
|
MD5 | ff4328a83a5c0d64cad614104547d17a |
|
BLAKE2b-256 | ca9e9f5cf48a38e656ff3605db9e96efb0d3954d193af5783cd599a9de7f2258 |