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. you’ll have the power to scrape Facebook data with unlimited calls. Whether you’re a researcher, a data enthusiast, or a developer building Facebook-related projects, this library can significantly simplify your data extraction process. It uses Selenium for web scraping and provides functionalities to retrieve page details such as page name, Category, Address, email, followers count, and more.

Dictionary Contents {#dictionary-section}

This section provides an overview of the dictionary contents.

Dictionary Fields

  • page_name: The name of the page.

  • location: The location of the page.

  • email: The email associated with the page.

  • phone_number: The phones number associated with the page

  • social_media_links: Links to the page’s social media accounts.

  • page_website: The websites link associated with the page

  • page_category: The category of the page.

  • page_followers: The page number of followers.

  • page_following: The number of following.

  • page_likes: The page number of likes.

  • page_rate: The page rates number.

  • review_number: The page reviews number.

This section provides an overview of the dictionary keys and types.

Dictionary Keys

  • page_name: string

  • location: string or None

  • email: string or None

  • phone_number: string or list of strings or None

  • social_media_links: string or list of strings or None

  • page_website: string or list of strings or None

  • page_category: string

  • page_followers: string

  • page_following: string

  • page_likes: string

  • page_rate: string

  • review_number: string

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

 # providing the page URL
 page_url = 'https://www.facebook.com/example-page'

 # Create an instance of the scraper
 scraper = FacebookPageInfoScraper(link=page_url)

 page_info = scraper.get_page_info()

 # Print page details
 print(page_info)

 page_info = {
    'page_name': 'Example Page',
    'location': 'Some Location',
    'email': 'example@example.com',
    'phone_number': '+33 536337',
    'social_media_links': 'www.instagram.com/example',
    'page_website': 'http://example.com',
    'page_category': 'Some category',
    'page_likes': '36,565',
    'page_followers': '38,225'
    'page_following': '120'
    'page_rate': '33'
    'review_number': '4.6'
}

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.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

facebook_page_info_scraper-1.1.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file facebook_page_info_scraper-1.1.2.tar.gz.

File metadata

File hashes

Hashes for facebook_page_info_scraper-1.1.2.tar.gz
Algorithm Hash digest
SHA256 58e76223ddf48291245ce8a3dc2a9272b54a9d9d74c49f12ac420a10dcaea11a
MD5 85c0eb944441fb61a8a021fb4a1289a2
BLAKE2b-256 920e63a1dc20460b35bebcd0e96fb68b02a19239207cdfda8dba79529a66c3d9

See more details on using hashes here.

File details

Details for the file facebook_page_info_scraper-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for facebook_page_info_scraper-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de2d14b8b2af25650ceab35d94639f36d5df7b98eb86ccf5466ce27bed10726e
MD5 21b87a9d72b9d40c802a1630b57e3846
BLAKE2b-256 c3475b07f09fbf54f3f35d3a5d8e5a6e50d0967757c256da862715c7131821a9

See more details on using hashes here.

Supported by

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