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 | Provenance | Actions |
|---|---|---|---|---|
| fbgs-1.0.0.tar.gz | 4.6 kB | Without provenance | Details for fbgs-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fbgs-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for fbgs-1.0.0-py3-none-any.whl |
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
|
Security for fbgs 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.