Facebook Friend List Scraper
OSINT tool to scrape names and usernames from large friend lists on Facebook, without being rate limited.
Getting started:
- Install using pip:
python -m pip install fb-friend-list-scraper - Script is now installed as
fbfriendlistscraper - Run with
-hor--helpto show usage information.
Usage:
usage: fbfriendlistscraper [-h] -e EMAIL [-p PASSWORD] -u USERNAME [-o OUTFILE] [-w] [-q] [-x] [-s SLEEPMULTIPLIER] [-i PROXY] [-c CMD]
Tool to scrape names and usernames from large friend lists on Facebook, without being rate limited
options:
-h, --help show this help message and exit
-e EMAIL, --email EMAIL
Email address or phone number to login with.
-p PASSWORD, --password PASSWORD
Password to login with. If not supplied you will be prompted. You really shouldn't use this for security reasons.
-u USERNAME, --username USERNAME
Username of the user to scrape.
-o OUTFILE, --outfile OUTFILE
Path of the output file. (Default: ./scraped_friends.txt)
-w, --headless Run webdriver in headless mode.
-q, --quiet Do not print scraped users to screen.
-x, --onlyusernames Only the usernames/IDs will be written to the output file.
-s SLEEPMULTIPLIER, --sleepmultiplier SLEEPMULTIPLIER
Multiply sleep time between each page scrape by n. Useful when being easily rate-limited.
-i PROXY, --proxy PROXY
Proxy server to use for connecting. Username/password can be supplied like: socks5://user:pass@host:port
-c CMD, --cmd CMD Shell command to run after each page scrape. Useful for changing proxy/VPN exit.
examples:
fbfriendlistscraper -e your@email.com -p YourPassword123 -u someusername.123 -o my_file.txt
fbfriendlistscraper --email your@email.com --username another.user --headless -s 2 -x
fbfriendlistscraper -e your@email.com -u username.johnson -w --proxy socks5://127.0.0.1:9050
fbfriendlistscraper -e your@email.com -u xxuserxx --headless --cmd "mullvad relay set provider Quadranet"
fbfriendlistscraper -e your@email.com -u markzuckerburger -w -o ./test.txt --cmd "killall -HUP tor"
NOTE:
Facebook changes the markup of it's pages regularly, so the script might break from time to time. Please open an issue if something doesn't work and I'll take a look at it. Pull requests are welcome as well.
TODO:
- Make script check for followers if friend list isn't public.
- Add more error handling.
- Add proxy rotation.
Metadata
Release files for fb-friend-list-scraper 0.3.6
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 |
|---|---|---|---|---|
| fb_friend_list_scraper-0.3.6.tar.gz | 19.4 kB | Without provenance | Details for fb_friend_list_scraper-0.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fb_friend_list_scraper-0.3.6-py3-none-any.whl | Python 3 | none | any | Details for fb_friend_list_scraper-0.3.6-py3-none-any.whl |
Total release size: 40.0 kB
Release files / fb_friend_list_scraper-0.3.6.tar.gz
| Download URL | fb_friend_list_scraper-0.3.6.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c32a06eabc03549a9d268bd02ef31cc994f91ce0eb0868ebce531f7b8b95a29d
|
|
BLAKE2b-256 checksum How to use checksums |
718bbd63a94489309f12cf8b5ef68541ca327245f829749650bb592687b47c11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / fb_friend_list_scraper-0.3.6-py3-none-any.whl
| Download URL | fb_friend_list_scraper-0.3.6-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddb312ea057da7fcb96bba134365e52f88ef5bcce130adcc9055478f2dd132fb
|
|
BLAKE2b-256 checksum How to use checksums |
7708126b677f8c5a1c2f3a0ca7605010e535de1391f21271bbc97c6cdba9d4ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for fb-friend-list-scraper 0.3.6
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.