Skip to main content

Facebook page scraper is a python package that helps you scrape data from facebook page.

Project description

Facebook Page Scraper

Facebook Page Scraper is a Python package designed to extract comprehensive information from Facebook pages. Whether you're looking to gather general page details or delve into specific profile information, this tool simplifies the process, saving you time and effort. Easily integrate it into your projects to collect data such as page name, URL, profile picture, number of likes, followers, and more.

With Facebook Page Scraper, you can efficiently scrape Facebook page data in various formats. If you're looking for a Facebook page scraper, a Facebook page info scraper in Python, or an easy way to scrape Facebook page info, this tool has you covered. It's also ideal for developers who need to extract Facebook page information or scrape Facebook data using Python. You can even find it on GitHub and integrate it into your project seamlessly.

If you find this package useful, please support the project by giving it a star on GitHub. Your support helps in maintaining and enhancing the project!

Installation

  • You can install this package using pip:
pip install facebook-pages-scraper
  • You can upgrade this package using pip (upgrade to latest version):
pip install facebook-pages-scraper --upgrade

Usage

Scraping General Page Information

The following example demonstrates how to scrape general information from a Facebook page using the FacebookPageScraper class.

from facebook_page_scraper import FacebookPageScraper
from rich import print

def main():
    urls = [
        "/instagram",
        "https://www.facebook.com/facebook",
        "https://www.facebook.com/MadKingXGaming/",
        "https://www.facebook.com/LinkedIn",
    ]

    for url in urls:
        print(f">= Scraping URL/Username: {url}\n")

        page_info = FacebookPageScraper.PageInfo(url)
        print("Page Information:")
        print(page_info)
        print("\n" + "=" * 80 + "\n")


if __name__ == "__main__":
    main()


# Output
    >= Scraping URL/Username: /instagram
    {
        'page_name': 'Instagram',
        'page_url': 'https://www.facebook.com/instagram',
        'profile_pic':
    'https://scontent.fdac22-2.fna.fbcdn.net/v/t39.30808-1/281523213_5154082218010914_1249949579548042028_n.jpg?stp=dst-jpg_s200x
    200&_nc_cat=1&ccb=1-7&_nc_sid=f4b9fd&_nc_ohc=xO9172fM8iwQ7kNvgGJTeKm&_nc_zt=24&_nc_ht=scontent.fdac22-2.fna&_nc_gid=AxLYcAimX
    PGqMhaTor0fRo_&oh=00_AYDt0G7UAg72JlSXc_9zHpAJxTV282cZGHpJXePHDa8O5Q&oe=671B59A9',
        'page_likes': '61M likes',
        'page_followers': '68M followers',
        'page_category': 'Page · App Page',
        'page_address': None,
        'page_phone': None,
        'page_email': None,
        'page_website': 'instagram.com',
        'page_business_hours': None,
        'page_business_price': None,
        'page_rating': None,
        'page_services': None,
        'page_social_accounts': None
    }

Disclaimer

⚠️ Important Notice

Facebook's Terms of Service and Community Standards prohibit unauthorized scraping of their platform. This package is intended for educational purposes, and you should use it in compliance with Facebook's policies. Unauthorized scraping or accessing Facebook data without permission can result in legal consequences or a permanent ban from the platform.

By using Facebook Page Scraper, you acknowledge that:

You have the right and permission to access the data you are scraping. You are solely responsible for how you use this package and for any consequences that may arise. The developers of this tool are not liable for any misuse, and it is your responsibility to ensure compliance with Facebook's rules and regulations.

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_pages_scraper-0.0.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

facebook_pages_scraper-0.0.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for facebook_pages_scraper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 164aabc033bc4f2192decb24d7dc58387312afe20a17b951d06ba2044630cc4a
MD5 a3c3a434167e2dff081842cb22ca8a4e
BLAKE2b-256 f16c5d0e871dc2ecd1a6cb9dce74530a233f71ebcf7285d2741dac3437bca3d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for facebook_pages_scraper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9cb187eaa7dfefee78deb0bca48c32ab6ff6707e381f5e658c0bd71b2565fb5
MD5 a96f7abe996118754e497770cbb6d53e
BLAKE2b-256 ee07abdd3e7a7dc67a7bf18aaec3d4243e24d1aabd387d58178b7303d361d9aa

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