Tool to scrape names and usernames from large friend lists on Facebook, without being rate limited.
Project description
Facebook Friend List Scraper
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
-h
or--help
to show usage information.
Usage:
usage: scraper.py [-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 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.
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
File details
Details for the file fb_friend_list_scraper-0.3.1.tar.gz
.
File metadata
- Download URL: fb_friend_list_scraper-0.3.1.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9be0ef3b0779d42c20a76916cd0ef28f423868ed632cf6f2d68121253798aee9 |
|
MD5 | d5581c1145a9ce1b6b77934153e00cf6 |
|
BLAKE2b-256 | 2ad3f5c43ba09cff96e31c16a325ef427940dc151c94055ee54153ff68579a97 |
File details
Details for the file fb_friend_list_scraper-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: fb_friend_list_scraper-0.3.1-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8942bb3bcf66c4187f4d3a2123a1b1c1729384c5e776a44257ad02c3600022c0 |
|
MD5 | da0d19f83841e5806af9777df0a2effe |
|
BLAKE2b-256 | 45f7078ce6fe9631d87d04b8434148d2574540ffa4bed4489bd52bd43107a3a6 |