Facebook group scraper
A simple selenium-dependent python scraper for Facebook groups.
Requirements:
- Python 3.6 or newer
- Selenium (automatically installed)
Installing
# pypi
pip3 install fbgs
# local
git clone https://github.com/lesander/facebook-group-scraper.git
cd facebook-group-scraper/
pip3 install -r requirements.txt
Usage
Cli usage:
# local & pypi
python3 -m fbgs \
--username user@example.com \
--password "example-password" \
--url https://m.facebook.com/groups/group-name \
--output ./path/for/output.json \
--no-shell # toggle to disable default selenium interactive prompt
Programmatic usage:
from fbgs import FacebookScraper
from fbgs.exceptions import ScraperException
try:
scraper = FacebookScraper(
username="user@example.com", password="example-password")
scraper.login()
g = scraper.scrape_group(url="https://m.facebook.com/groups/group-name", out="output-example.json")
scraper.interactive()
except ScraperException as e:
print(f'ScraperException: {e}')
Metadata
Release files for fbgs 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fbgs-1.0.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fbgs-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / fbgs-1.0.0.tar.gz
| Download URL | fbgs-1.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13c4ca9b870e6987402c12461ed8e501f49a42714092609d87cdf970f746ca14
|
|
BLAKE2b-256 checksum How to use checksums |
ab17e61efb1cc55107c50ddd3252d11eaa12130c30399cc8922569c26b88e451
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / fbgs-1.0.0-py3-none-any.whl
| Download URL | fbgs-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00c4ae6a4a43cd2e32c1270eca4cf96d50b5887fb5d2b6e7fe4f520fc1faa1ce
|
|
BLAKE2b-256 checksum How to use checksums |
7268699e17784dd0cfb41df97b443a0bc55a5751c9f6dd789b4cb86ad75226f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|