前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >FisherMan:通过Selenium收集Facebook用户资料

FisherMan:通过Selenium收集Facebook用户资料

作者头像
FB客服
发布2023-03-30 19:29:02
发布2023-03-30 19:29:02
27600
代码可运行
举报
文章被收录于专栏:FreeBufFreeBuf
运行总次数:0
代码可运行

 关于FisherMan 

FisherMan是一款功能强大的社交媒体信息收集工具,FisherMan基于Selenium实现其功能,可以帮助广大研究人员利用Selenium来收集Facebook用户的个人资料信息。

 工具安装 

FisherMan基于Python开发,因此我们需要在本地设备上安装并配置好Python环境。

接下来,我们需要使用下列命令将该项目源码克隆至本地:

代码语言:javascript
代码运行次数:0
复制
$ git clone https://github.com/Godofcoffe/FisherMan

在命令行窗口中,切换至项目根目录,并安装好工具所需的依赖组件:

代码语言:javascript
代码运行次数:0
复制
$ cd FisherMan$ python3 -m pip install -r requeriments.txt

 工具使用 

代码语言:javascript
代码运行次数:0
复制
$ python3 fisherman.py --help
usage: fisherman.py [-h] [--version] [-u USERNAME [USERNAME ...] | -i ID
                    [ID ...] | --use-txt TXT_FILE | -S USER] [-v | -q] [-sf]
                    [--specify {0,1,2,3,4,5} [{0,1,2,3,4,5} ...]] [-s]
                    [--filters]
                    [-work WORK | -education EDUCATION | -city CITY] [-b]
                    [--email EMAIL] [--password PASSWORD] [-o | -c]
FisherMan: Extract information from facebook profiles. (Version 3.6.0)
optional arguments:
  -h, --help            show this help message and exit
  --version             Shows the current version of the program.
  -u USERNAME [USERNAME ...], --username USERNAME [USERNAME ...]
                        Defines one or more users for the search.
  -i ID [ID ...], --id ID [ID ...]
                        Set the profile identification number.
  --use-txt TXT_FILE    Replaces the USERNAME parameter with a user list in a
                        txt.
  -S USER, --search USER
                        It does a shallow search for the username. Replace the
                        spaces with '.'(period).
  -v, -d, --verbose, --debug
                        It shows in detail the data search process.
  -q, --quiet           Eliminates and simplifies some script outputs for a
                        simpler and more discrete visualization.
  -b, --browser         Opens the browser/bot.
search options:
  --filters             Shows the list of available filters.
  -work WORK            Sets the work filter.
  -education EDUCATION  Sets the education filter.
  -city CITY            Sets the city filter.
profile options:
  -sf, --scrape-family  If this parameter is passed, the information from
                        family members will be scraped if available.
  --specify {0,1,2,3,4,5} [{0,1,2,3,4,5} ...]
                        Use the index number to return a specific part of the
                        page. about: 0, about_contact_and_basic_info: 1,
                        about_family_and_relationships: 2, about_details: 3,
                        about_work_and_education: 4, about_places: 5.
  -s, --several         Returns extra data like profile picture, number of
                        followers and friends.
credentials:
  --email EMAIL         If the profile is blocked, you can define your
                        account, however you have the search user in your
                        friends list.
  --password PASSWORD   Set the password for your facebook account, this
                        parameter has to be used with --email.
output:
  -o, --file-output      Save the output data to a .txt file.
  -c, --compact         Save the output data to a .txt file and compress.

(向右滑动、查看更多)

搜索目标用户

用户名搜索:

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py -u name name.profile name.profile2

ID搜索:

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py -i 000000000000

我们也可以通过一个.txt文件加载多个目标用户名,这种情况适用于暴力破解输出类型:

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py --use-txt filename.txt

注意:某些账号只能搜索有限的信息,并且受限于用户的好友列表:

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py --email youremail@email.com --password yourpass

大规模信息收集

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py --use-txt file -c -sf

基础数据收集

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py -u name --specify 0

家庭和关系收集

代码语言:javascript
代码运行次数:0
复制
python3 -u name --specify 2

获取额外信息(例如用户头像、粉丝和好友)

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py -u name [-s | --several]

过滤搜索结果

代码语言:javascript
代码运行次数:0
复制
python3 fisherman.py -S name -work fisherman

 工具使用演示 

视频地址:https://asciinema.org/a/434026

 许可证协议 

本项目的开发与发布遵循BSD 3-Clause开源许可证协议。

 项目地址 

FisherMan:https://github.com/Godofcoffe/FisherMan

精彩推荐

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-08-28,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 FreeBuf 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  •  关于FisherMan 
  •  工具安装 
  •  工具使用 
    • (向右滑动、查看更多)
    • 搜索目标用户
    • 大规模信息收集
    • 基础数据收集
    • 家庭和关系收集
    • 获取额外信息(例如用户头像、粉丝和好友)
    • 过滤搜索结果
  •  工具使用演示 
  •  许可证协议 
  •  项目地址 
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档