Scraping facebook page tool
Project description
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
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
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file facebook_scraper_vn-0.0.1.tar.gz.
File metadata
- Download URL: facebook_scraper_vn-0.0.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62e1f502c82bac88d3215a4568dd674cb2985e5748606a0b67d55bd28bd4343b
|
|
| MD5 |
8ddee79d113ce505638c39b5c86e8777
|
|
| BLAKE2b-256 |
a80d6db289415d13d61364e2e4d57e5f7ab22f9215c2ad4dee32d758ba2a55c0
|
File details
Details for the file facebook_scraper_vn-0.0.1-py3-none-any.whl.
File metadata
- Download URL: facebook_scraper_vn-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcc35e25e6eb97a0c38d960860f12f4677b4776b0ff76316c2e86c0d7160e4a3
|
|
| MD5 |
17518e6dcd8aa5a3db7de6c8d8fbb0f6
|
|
| BLAKE2b-256 |
5bd3625ddc6418c4d864cc42d5757bf6c304e1703e3cb03ac417ad1e1abe9440
|