urlCheck

批量检测链接是否有效

使用教程

在命令行中

1
python urlCheck.py --url https://google.com https://youtube.com

从文件中读取
1
python urlCheck.py --file test.txt

保存结果到文件

1
python urlCheck.py --file test.txt --out result.txt

设置保存的格式,通过out-flag选项,默认值是tcu

1
python urlCheck.py --url https://github.com https://dadawdd --out result.txt --out-flag ctu

参数

1
2
3
4
5
6
7
-h,--help                 show this help message and exit
-url URL [URL ...] check from string
--file FILE check from File
--timeout default=3 set timeout
--out OUT output to file
--out-flag OUTGLAG output flag,default is "tcu"
-v,-V,--Version show program's version number and exit

out-flag

仅支持t,c,u,默认是tcu,即以测试时间,测试返回值,测试链接 格式保存

flag description
t 测试时间
c 测试返回值
u 测试链接

可以任意进行组合

下载

Github链接

更新记录

2024-11-03 0.0.1

  1. 实现从命令行解析和文件解析
  2. 保存结果到文件