[](https://badge.fury.io/py/facebook-pages-scraper)
[](https://pypi.org/project/facebook-pages-scraper/)
[](https://pepy.tech/project/facebook-pages-scraper)
[](https://pepy.tech/project/facebook-pages-scraper)
[](https://pepy.tech/project/facebook-pages-scraper)
# Facebook Page Scraper
**Facebook Page Scraper** is a Python client package/library that helps you grab Facebook page data without the hassle. Need basic stuff like page names and profile pics? Or maybe you're after business details, follower counts, and engagement stats? This Python package does it all with minimal code. Perfect for developers looking to **scrape Facebook page info** without wasting time. This **Facebook page info scraper in Python** cuts out hours of manual work and gives you clean, ready-to-use results. It handles all kinds of pages, pulls **Facebook page information** without login headaches, and fits right into your existing projects - whether you're building a dashboard, running analysis, or keeping tabs on competitors. Found on **GitHub** and PyPI, our **Facebook page scraper** is straightforward enough for newcomers but packed with features that make **Facebook data extraction** a breeze for seasoned coders too.
If you find this package useful, please support the project by giving it a star on [GitHub](https://github.com/SSujitX/facebook-pages-scraper). Your support helps in maintaining and enhancing the project!
## Update
- **Version 0.0.4**:
- **Fixed**: Improved error handling for missing user data in page_info.py.
- **Fixed**: Added proper null checks for delegate_page and profile_social_context.
- **Improved**: Enhanced robustness against Facebook API structure changes.
### Features:
- **Page Name & URL Extraction**: Easily extract the name and URL of the Facebook page
- **Profile Picture Access**: Get high-quality profile picture URLs
- **Basic Metrics**: Extract likes, followers, talking count, and check-ins
- **Page Identity**: Get page ID and business page status
- **Detailed Statistics**: Access precise counts for likes, engagements, and visitor metrics
- **Business Information**:
- Category and classification
- Physical address
- Contact details (phone and email)
- Website URL
- Operating hours
- Price range indicators
- Available services
- **Rating Information**: Access page ratings when available
- **Social Media Integration**: Retrieve connected social media accounts
- **Simple Integration**: Easy to integrate into any Python project
## Installation
- You can install this package using pip:
```sh
pip install facebook-pages-scraper
```
- You can upgrade this package using pip (upgrade to the latest version):
```sh
pip install facebook-pages-scraper --upgrade
```
- Using uv:
```sh
uv add facebook-pages-scraper -U
```
## Usage
### Scraping General Page Information
The following example demonstrates how to scrape general information from a Facebook page using the `FacebookPageScraper` class.
```python
from facebook_page_scraper import FacebookPageScraper
from rich.pretty import pprint
def main():
url = "https://www.facebook.com/pizzaburgbd"
pprint(f">= Scraping URL/Username: {url}")
page_info = FacebookPageScraper.PageInfo(url)
pprint("Page Information:")
pprint(page_info)
pprint("=" * 80)
if __name__ == "__main__":
main()
```
### Using a for loop to scrape multiple URLs
```python
from facebook_page_scraper import FacebookPageScraper
from rich.pretty import pprint
import time
def main():
urls = [
"/instagram",
"https://www.facebook.com/facebook",
"https://www.facebook.com/MadKingXGaming/",
"https://www.facebook.com/LinkedIn",
"https://www.facebook.com/pizzaburgbd"
]
for url in urls:
pprint(f">= Scraping URL/Username: {url}")
page_info = FacebookPageScraper.PageInfo(url)
pprint("Page Information:")
pprint(page_info)
pprint("=" * 80)
time.sleep(2)
if __name__ == "__main__":
main()
```
### Possible output
```sh
{
│ 'page_name': 'PizzaBurg',
│ 'page_url': 'https://www.facebook.com/pizzaburgbd',
│ 'profile_pic': 'https://scontent.fdac22-2.fna.fbcdn.net/v/t39.30808-1/461120046_932810008890332_7328117254384510587_n.jpg?stp=cp6_dst-jpg_s200x200_tt6&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=lMP1pZatZ90Q7kNvgEBx2nl&_nc_oc=AdhqTswSuZ36AUvf955zvso4FUy1qUvAUsTwzwik8lijO-NNmFLmxAhqyDFtGI-rllw&_nc_zt=24&_nc_ht=scontent.fdac22-2.fna&_nc_gid=ADEDzW-U1qvrumGbDCHzumc&oh=00_AYAo2NWsmCr_qa0IZc3Nwj_7K_-DVrgkuidp1PGhvXcFjg&oe=67B3145F',
│ 'page_likes': '412K likes',
│ 'page_followers': '614K followers',
│ 'page_id': '1156899667774877',
│ 'is_business_page': True,
│ 'page_likes_count': '412,723',
│ 'page_talking_count': '26,076',
│ 'page_were_here_count': '64,824',
│ 'page_category': 'Page · Fast food restaurant',
│ 'page_address': 'Avenue Road Section:2 , Block: A, Avenue:1 , House: 12/1, Dhaka 1216, Dhaka, Bangladesh',
│ 'page_phone': '01404-461200',
│ 'page_email': 'pizzaburgofficial@gmail.com',
│ 'page_website': 'pizzaburg.com',
│ 'page_business_hours': 'Closed now',
│ 'page_business_price': 'Price range · £',
│ 'page_rating': None,
│ 'page_services': 'Dine in · In-store collection',
│ '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.
## Star History
[](https://www.star-history.com/#SSujitX/facebook-pages-scraper&type=date&legend=top-left)

Raw data
{
"_id": null,
"home_page": "https://github.com/SSujitX/facebook-page-scraper",
"name": "facebook-pages-scraper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "facebook page scraper, scrape facebook page info, facebook data scraper, facebook page info extractor, python facebook scraper",
"author": "Sujit Biswas",
"author_email": "ssujitxx@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0e/9e/35f4bf67ee39f3e9c31a7a5b4f587c8c118197b027942f8b555c6059c63f/facebook_pages_scraper-0.0.4.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/py/facebook-pages-scraper)\n[](https://pypi.org/project/facebook-pages-scraper/)\n[](https://pepy.tech/project/facebook-pages-scraper)\n[](https://pepy.tech/project/facebook-pages-scraper)\n[](https://pepy.tech/project/facebook-pages-scraper)\n\n# Facebook Page Scraper\n\n**Facebook Page Scraper** is a Python client package/library that helps you grab Facebook page data without the hassle. Need basic stuff like page names and profile pics? Or maybe you're after business details, follower counts, and engagement stats? This Python package does it all with minimal code. Perfect for developers looking to **scrape Facebook page info** without wasting time. This **Facebook page info scraper in Python** cuts out hours of manual work and gives you clean, ready-to-use results. It handles all kinds of pages, pulls **Facebook page information** without login headaches, and fits right into your existing projects - whether you're building a dashboard, running analysis, or keeping tabs on competitors. Found on **GitHub** and PyPI, our **Facebook page scraper** is straightforward enough for newcomers but packed with features that make **Facebook data extraction** a breeze for seasoned coders too.\n\nIf you find this package useful, please support the project by giving it a star on [GitHub](https://github.com/SSujitX/facebook-pages-scraper). Your support helps in maintaining and enhancing the project!\n\n## Update\n\n- **Version 0.0.4**:\n - **Fixed**: Improved error handling for missing user data in page_info.py.\n - **Fixed**: Added proper null checks for delegate_page and profile_social_context.\n - **Improved**: Enhanced robustness against Facebook API structure changes.\n\n### Features:\n\n- **Page Name & URL Extraction**: Easily extract the name and URL of the Facebook page\n- **Profile Picture Access**: Get high-quality profile picture URLs\n- **Basic Metrics**: Extract likes, followers, talking count, and check-ins\n- **Page Identity**: Get page ID and business page status\n- **Detailed Statistics**: Access precise counts for likes, engagements, and visitor metrics\n- **Business Information**:\n - Category and classification\n - Physical address\n - Contact details (phone and email)\n - Website URL\n - Operating hours\n - Price range indicators\n - Available services\n- **Rating Information**: Access page ratings when available\n- **Social Media Integration**: Retrieve connected social media accounts\n- **Simple Integration**: Easy to integrate into any Python project\n\n## Installation\n\n- You can install this package using pip:\n\n```sh\npip install facebook-pages-scraper\n```\n\n- You can upgrade this package using pip (upgrade to the latest version):\n\n```sh\npip install facebook-pages-scraper --upgrade\n```\n\n- Using uv:\n\n```sh\nuv add facebook-pages-scraper -U\n```\n\n## Usage\n\n### Scraping General Page Information\n\nThe following example demonstrates how to scrape general information from a Facebook page using the `FacebookPageScraper` class.\n\n```python\nfrom facebook_page_scraper import FacebookPageScraper\nfrom rich.pretty import pprint\n\ndef main():\n url = \"https://www.facebook.com/pizzaburgbd\"\n\n pprint(f\">= Scraping URL/Username: {url}\")\n\n page_info = FacebookPageScraper.PageInfo(url)\n pprint(\"Page Information:\")\n pprint(page_info)\n pprint(\"=\" * 80)\n\nif __name__ == \"__main__\":\n main()\n```\n\n### Using a for loop to scrape multiple URLs\n\n```python\nfrom facebook_page_scraper import FacebookPageScraper\nfrom rich.pretty import pprint\nimport time\n\ndef main():\n urls = [\n \"/instagram\",\n \"https://www.facebook.com/facebook\",\n \"https://www.facebook.com/MadKingXGaming/\",\n \"https://www.facebook.com/LinkedIn\",\n \"https://www.facebook.com/pizzaburgbd\"\n ]\n\n for url in urls:\n pprint(f\">= Scraping URL/Username: {url}\")\n\n page_info = FacebookPageScraper.PageInfo(url)\n pprint(\"Page Information:\")\n pprint(page_info)\n pprint(\"=\" * 80)\n time.sleep(2)\n\n\nif __name__ == \"__main__\":\n main()\n```\n\n### Possible output\n\n```sh\n{\n\u2502 'page_name': 'PizzaBurg',\n\u2502 'page_url': 'https://www.facebook.com/pizzaburgbd',\n\u2502 'profile_pic': 'https://scontent.fdac22-2.fna.fbcdn.net/v/t39.30808-1/461120046_932810008890332_7328117254384510587_n.jpg?stp=cp6_dst-jpg_s200x200_tt6&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=lMP1pZatZ90Q7kNvgEBx2nl&_nc_oc=AdhqTswSuZ36AUvf955zvso4FUy1qUvAUsTwzwik8lijO-NNmFLmxAhqyDFtGI-rllw&_nc_zt=24&_nc_ht=scontent.fdac22-2.fna&_nc_gid=ADEDzW-U1qvrumGbDCHzumc&oh=00_AYAo2NWsmCr_qa0IZc3Nwj_7K_-DVrgkuidp1PGhvXcFjg&oe=67B3145F',\n\u2502 'page_likes': '412K likes',\n\u2502 'page_followers': '614K followers',\n\u2502 'page_id': '1156899667774877',\n\u2502 'is_business_page': True,\n\u2502 'page_likes_count': '412,723',\n\u2502 'page_talking_count': '26,076',\n\u2502 'page_were_here_count': '64,824',\n\u2502 'page_category': 'Page \u00b7 Fast food restaurant',\n\u2502 'page_address': 'Avenue Road Section:2 , Block: A, Avenue:1 , House: 12/1, Dhaka 1216, Dhaka, Bangladesh',\n\u2502 'page_phone': '01404-461200',\n\u2502 'page_email': 'pizzaburgofficial@gmail.com',\n\u2502 'page_website': 'pizzaburg.com',\n\u2502 'page_business_hours': 'Closed now',\n\u2502 'page_business_price': 'Price range \u00b7 \u00a3',\n\u2502 'page_rating': None,\n\u2502 'page_services': 'Dine in \u00b7 In-store collection',\n\u2502 'page_social_accounts': None\n}\n```\n\n# Disclaimer\n\n\u26a0\ufe0f Important Notice\n\nFacebook'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.\n\nBy using Facebook Page Scraper, you acknowledge that:\n\nYou have the right and permission to access the data you are scraping.\nYou are solely responsible for how you use this package and for any consequences that may arise.\nThe developers of this tool are not liable for any misuse, and it is your responsibility to ensure compliance with Facebook's rules and regulations.\n\n## Star History\n\n[](https://www.star-history.com/#SSujitX/facebook-pages-scraper&type=date&legend=top-left)\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Facebook page scraper is a python package that helps you scrape data from facebook pages.",
"version": "0.0.4",
"project_urls": {
"Bug Tracker": "https://github.com/SSujitX/facebook-page-scraper/issues",
"Documentation": "https://github.com/SSujitX/facebook-page-scraper#readme",
"Homepage": "https://github.com/SSujitX/facebook-page-scraper",
"Source Code": "https://github.com/SSujitX/facebook-page-scraper"
},
"split_keywords": [
"facebook page scraper",
" scrape facebook page info",
" facebook data scraper",
" facebook page info extractor",
" python facebook scraper"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1b2824b0ae89edbac41bde62d2ab624d1516d377dfc6da498ab4a53ffa9b6119",
"md5": "c9e5e40c91b237fad33238cdcd6af62f",
"sha256": "9873975a89c751161015bdec38cab2e46ac5fd904d7a319f3a54771856971d2a"
},
"downloads": -1,
"filename": "facebook_pages_scraper-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c9e5e40c91b237fad33238cdcd6af62f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 11722,
"upload_time": "2025-10-15T09:07:08",
"upload_time_iso_8601": "2025-10-15T09:07:08.864825Z",
"url": "https://files.pythonhosted.org/packages/1b/28/24b0ae89edbac41bde62d2ab624d1516d377dfc6da498ab4a53ffa9b6119/facebook_pages_scraper-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0e9e35f4bf67ee39f3e9c31a7a5b4f587c8c118197b027942f8b555c6059c63f",
"md5": "b09934b1b39a6b9a9077995cdc8e0543",
"sha256": "291ef49b8377d21873725f1594898aab951c3c586b67aa51b5b20bc2ccbbdc6e"
},
"downloads": -1,
"filename": "facebook_pages_scraper-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "b09934b1b39a6b9a9077995cdc8e0543",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 12584,
"upload_time": "2025-10-15T09:07:09",
"upload_time_iso_8601": "2025-10-15T09:07:09.812277Z",
"url": "https://files.pythonhosted.org/packages/0e/9e/35f4bf67ee39f3e9c31a7a5b4f587c8c118197b027942f8b555c6059c63f/facebook_pages_scraper-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-15 09:07:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SSujitX",
"github_project": "facebook-page-scraper",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "curl_cffi",
"specs": []
},
{
"name": "selectolax",
"specs": []
},
{
"name": "setuptools",
"specs": []
},
{
"name": "rich",
"specs": []
}
],
"lcname": "facebook-pages-scraper"
}