# facebook_scraper_vn version 0.0.1
facebook_scraper_vn is a python package for scraping facebook's page. It can get text content, date, image, video, post engagement's post.
> [!WARNING]
> This package is only developed for learning purposes
## Installation
```python
pip install facebook_scraper_vn
```
## Sample
Firstly, we need to create and save a facebook's cookie into a file called "facebook_cookies.json" in the current folder
```python
from facebook_scraper_vn.facebook_scraper import FacebookScraper
scraper = FacebookScraper("your facebook's email", "your facebook's password")
scraper.generate_cookie()
```
And when we had the cookie, we started to scrape
```python
from facebook_scraper_vn.facebook_scraper import FacebookScraper
SCROLL_NUMBER = 5
scraper = FacebookScraper("your facebook's email", "your facebook's password")
# scraper.generate_cookie() # run this line if we dont have cookie
scraper.load_cookie()
facebook_pages = ["hustconfession"] # page's id list
scraper.fetch_page(facebook_pages, SCROLL_NUMBER)
```
> [!TIP]
> The higher "SCROLL_NUMBER" value, the more pages are scraped
Raw data
{
"_id": null,
"home_page": null,
"name": "facebook-scraper-vn",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "facebook, scrape, crawl, page",
"author": null,
"author_email": "Le Duc Phuong <phuongtroc2004@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a8/0d/6db289415d13d61364e2e4d57e5f7ab22f9215c2ad4dee32d758ba2a55c0/facebook_scraper_vn-0.0.1.tar.gz",
"platform": null,
"description": "# facebook_scraper_vn version 0.0.1\r\nfacebook_scraper_vn is a python package for scraping facebook's page. It can get text content, date, image, video, post engagement's post.\r\n> [!WARNING]\r\n> This package is only developed for learning purposes\r\n## Installation\r\n```python\r\npip install facebook_scraper_vn\r\n```\r\n## Sample\r\nFirstly, we need to create and save a facebook's cookie into a file called \"facebook_cookies.json\" in the current folder\r\n```python\r\nfrom facebook_scraper_vn.facebook_scraper import FacebookScraper\r\n\r\nscraper = FacebookScraper(\"your facebook's email\", \"your facebook's password\")\r\nscraper.generate_cookie()\r\n```\r\nAnd when we had the cookie, we started to scrape\r\n```python\r\nfrom facebook_scraper_vn.facebook_scraper import FacebookScraper\r\n\r\nSCROLL_NUMBER = 5\r\n\r\nscraper = FacebookScraper(\"your facebook's email\", \"your facebook's password\") \r\n# scraper.generate_cookie() # run this line if we dont have cookie\r\nscraper.load_cookie()\r\nfacebook_pages = [\"hustconfession\"] # page's id list\r\nscraper.fetch_page(facebook_pages, SCROLL_NUMBER)\r\n```\r\n> [!TIP]\r\n> The higher \"SCROLL_NUMBER\" value, the more pages are scraped\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Scraping facebook page tool",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/leducphuong19122004/Facebook-Scraping"
},
"split_keywords": [
"facebook",
" scrape",
" crawl",
" page"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5bd3625ddc6418c4d864cc42d5757bf6c304e1703e3cb03ac417ad1e1abe9440",
"md5": "17518e6dcd8aa5a3db7de6c8d8fbb0f6",
"sha256": "fcc35e25e6eb97a0c38d960860f12f4677b4776b0ff76316c2e86c0d7160e4a3"
},
"downloads": -1,
"filename": "facebook_scraper_vn-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "17518e6dcd8aa5a3db7de6c8d8fbb0f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5997,
"upload_time": "2024-08-20T08:30:43",
"upload_time_iso_8601": "2024-08-20T08:30:43.676629Z",
"url": "https://files.pythonhosted.org/packages/5b/d3/625ddc6418c4d864cc42d5757bf6c304e1703e3cb03ac417ad1e1abe9440/facebook_scraper_vn-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a80d6db289415d13d61364e2e4d57e5f7ab22f9215c2ad4dee32d758ba2a55c0",
"md5": "8ddee79d113ce505638c39b5c86e8777",
"sha256": "62e1f502c82bac88d3215a4568dd674cb2985e5748606a0b67d55bd28bd4343b"
},
"downloads": -1,
"filename": "facebook_scraper_vn-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "8ddee79d113ce505638c39b5c86e8777",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5484,
"upload_time": "2024-08-20T08:30:45",
"upload_time_iso_8601": "2024-08-20T08:30:45.313501Z",
"url": "https://files.pythonhosted.org/packages/a8/0d/6db289415d13d61364e2e4d57e5f7ab22f9215c2ad4dee32d758ba2a55c0/facebook_scraper_vn-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-20 08:30:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "leducphuong19122004",
"github_project": "Facebook-Scraping",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "facebook-scraper-vn"
}