检查您的用户名是否来自不同的站点

usercheck的Python项目详细描述


用户检查器

Check if your username is already taken !

用户检查器cli

usage: usercheck [-h] [-f] [-n NUM_THREADS] [-a] [-d] [-c] [-s SAVEDIR] [-j] [-p] usernameOrFilename

positional arguments:
  usernameOrFilename            Username or filename to check

optional arguments:
  -h, --help                    show this help message and exit
  -f, --file                    File mode
  -n NUM_THREADS                Max num threads (default=50)
  --num_threads   NUM_THREADS   Max num threads (default=50)
  -a, --async                   Async
  -d, --debug                   Debug messages
  -c, --complete                Dont stop on first false
  -j, --json                    Output as JSON
  -p, --progress                Progress bar

样品

基本

$ usercheck ethanquix
# Output nothing because at least one service return False

$ usercheck random_goodbaguette_croissant
random_goodbaguette_croissant

完成

$ usercheck ethanquix -c
ethanquix
	twitter        False
	reddit         False
	github         False
	instagram      False

$ usercheck ethanqx -c
ethanquix
	twitter        False
	reddit         False
	github         True
	instagram      True

文件

$ cat data/samples.txt
jack
this_pseudo_dont_existWEEUFHG
gooogle

$ usercheck data/samples.txt -f
this_pseudo_dont_existWEEUFHG

$ usercheck data/samples.txt -fc
jack
	twitter        False
	reddit         False
	github         False
	instagram      False
this_pseudo_dont_existWEEUFHG
	twitter        True
	reddit         True
	github         True
	instagram      True
gooogle
	twitter        False
	reddit         False
	github         False
	instagram      False

json

$ usercheck ethanquix -cj
{
    "ethanquix": {
        "twitter": false,
        "reddit": false,
        "github": false,
        "instagram": false
    }
}

$ usercheck data/samples.txt -fj
[
    "this_pseudo_dont_existWEEUFHG"
]

$ usercheck data/samples.txt -fcj
{
    "jack": {
        "twitter": false,
        "reddit": false,
        "github": false,
        "instagram": false
    },
    "this_pseudo_dont_existWEEUFHG": {
        "twitter": true,
        "reddit": true,
        "github": true,
        "instagram": true
    },
    "gooogle": {
        "twitter": false,
        "reddit": false,
        "github": false,
        "instagram": false
    }
}

异步(仅适用于文件)

$ cat data/samples_medium.txt | wc -l
21

$ time `usercheck data/samples_medium.txt -fc > /dev/null`
real	1m9.380s

$ time `usercheck data/samples_medium.txt -fca > /dev/null`
real	0m6.827s

线程数

大小为N的用户名列表被分成X个大小为N / num_threads的块。
默认值为50

$ time usercheck data/samples_medium.txt -fcad
Creating 20 chunks of 1.0 usernames
[...]
real	0m6.146s

$ time usercheck data/samples_medium.txt -fcad -n 4
Creating 4 chunks of 5.0 usernames
[...]
real	0m19.618s

进展

$ usercheck data/samples_medium.txt -fcap
  0%|                                                                                           | 0/20 [00:00<?, ?it/s]
  5%|████▏                                                                              | 1/20 [00:04<01:31,  4.81s/it]
 45%|█████████████████████████████████████▎                                             | 9/20 [00:05<00:06,  1.77it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.92it/s

服务

  • 推特
  • reddit
  • Github
  • Instagram

在python中使用

待办事项

More services
Random user agent
Move services from init to class
Option to select services
Option to save to file

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
socketJava加密聊天客户端未通过关联   java保存JFileChooser的状态   java如何让代码等待GUI完成?   java可序列化和接口:Parcelable在写入可序列化对象时遇到IOException   java Jersey客户端将覆盖ROBOTS响应   java空指针异常&如何克服   java如何使用JAXR设置字符集?   JavaSpring自定义转换器被覆盖   java将泛型类型的值设置为DTO字段   使用netty的java音频流服务器   java滚动条添加到面板时不显示在滚动窗格中   java windows通过IIS Url重写单点登录tomcat   Web应用程序的java容器管理安全性   java使用mybatis将POJO项数组传递到存储过程?