# 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](https://github.com/SSujitX/facebook-page-scraper). Your support helps in maintaining and enhancing the project!
## Installation
- You can install this package using pip:
```sh
pip install facebook-pages-scraper
```
- You can upgrade this package using pip (upgrade to latest version):
```sh
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.
```python
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.
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/f1/6c/5d0e871dc2ecd1a6cb9dce74530a233f71ebcf7285d2741dac3437bca3d2/facebook_pages_scraper-0.0.1.tar.gz",
"platform": null,
"description": "# Facebook Page Scraper\r\n\r\n**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.\r\n\r\nWith 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.\r\n\r\nIf you find this package useful, please support the project by giving it a star on [GitHub](https://github.com/SSujitX/facebook-page-scraper). Your support helps in maintaining and enhancing the project!\r\n\r\n## Installation\r\n\r\n- You can install this package using pip:\r\n\r\n```sh\r\npip install facebook-pages-scraper\r\n```\r\n\r\n- You can upgrade this package using pip (upgrade to latest version):\r\n\r\n```sh\r\npip install facebook-pages-scraper --upgrade\r\n```\r\n\r\n## Usage\r\n\r\n### Scraping General Page Information\r\n\r\nThe following example demonstrates how to scrape general information from a Facebook page using the `FacebookPageScraper` class.\r\n\r\n```python\r\nfrom facebook_page_scraper import FacebookPageScraper\r\nfrom rich import print\r\n\r\ndef main():\r\n urls = [\r\n \"/instagram\",\r\n \"https://www.facebook.com/facebook\",\r\n \"https://www.facebook.com/MadKingXGaming/\",\r\n \"https://www.facebook.com/LinkedIn\",\r\n ]\r\n\r\n for url in urls:\r\n print(f\">= Scraping URL/Username: {url}\\n\")\r\n\r\n page_info = FacebookPageScraper.PageInfo(url)\r\n print(\"Page Information:\")\r\n print(page_info)\r\n print(\"\\n\" + \"=\" * 80 + \"\\n\")\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n\r\n\r\n# Output\r\n >= Scraping URL/Username: /instagram\r\n {\r\n 'page_name': 'Instagram',\r\n 'page_url': 'https://www.facebook.com/instagram',\r\n 'profile_pic':\r\n 'https://scontent.fdac22-2.fna.fbcdn.net/v/t39.30808-1/281523213_5154082218010914_1249949579548042028_n.jpg?stp=dst-jpg_s200x\r\n 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\r\n PGqMhaTor0fRo_&oh=00_AYDt0G7UAg72JlSXc_9zHpAJxTV282cZGHpJXePHDa8O5Q&oe=671B59A9',\r\n 'page_likes': '61M likes',\r\n 'page_followers': '68M followers',\r\n 'page_category': 'Page \u00b7 App Page',\r\n 'page_address': None,\r\n 'page_phone': None,\r\n 'page_email': None,\r\n 'page_website': 'instagram.com',\r\n 'page_business_hours': None,\r\n 'page_business_price': None,\r\n 'page_rating': None,\r\n 'page_services': None,\r\n 'page_social_accounts': None\r\n }\r\n```\r\n\r\n# Disclaimer\r\n\r\n\u26a0\ufe0f Important Notice\r\n\r\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.\r\n\r\nBy using Facebook Page Scraper, you acknowledge that:\r\n\r\nYou have the right and permission to access the data you are scraping.\r\nYou are solely responsible for how you use this package and for any consequences that may arise.\r\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.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Facebook page scraper is a python package that helps you scrape data from facebook page.",
"version": "0.0.1",
"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": "",
"digests": {
"blake2b_256": "ee07abdd3e7a7dc67a7bf18aaec3d4243e24d1aabd387d58178b7303d361d9aa",
"md5": "a96f7abe996118754e497770cbb6d53e",
"sha256": "b9cb187eaa7dfefee78deb0bca48c32ab6ff6707e381f5e658c0bd71b2565fb5"
},
"downloads": -1,
"filename": "facebook_pages_scraper-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a96f7abe996118754e497770cbb6d53e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 9113,
"upload_time": "2024-10-21T00:47:59",
"upload_time_iso_8601": "2024-10-21T00:47:59.695828Z",
"url": "https://files.pythonhosted.org/packages/ee/07/abdd3e7a7dc67a7bf18aaec3d4243e24d1aabd387d58178b7303d361d9aa/facebook_pages_scraper-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f16c5d0e871dc2ecd1a6cb9dce74530a233f71ebcf7285d2741dac3437bca3d2",
"md5": "a3c3a434167e2dff081842cb22ca8a4e",
"sha256": "164aabc033bc4f2192decb24d7dc58387312afe20a17b951d06ba2044630cc4a"
},
"downloads": -1,
"filename": "facebook_pages_scraper-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "a3c3a434167e2dff081842cb22ca8a4e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 9101,
"upload_time": "2024-10-21T00:48:01",
"upload_time_iso_8601": "2024-10-21T00:48:01.784916Z",
"url": "https://files.pythonhosted.org/packages/f1/6c/5d0e871dc2ecd1a6cb9dce74530a233f71ebcf7285d2741dac3437bca3d2/facebook_pages_scraper-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-21 00:48:01",
"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"
}