mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
新增手机号、IP查询
This commit is contained in:
parent
a604a04546
commit
f60bbb1881
1
CommandCollections/手机号、IP 归属地查询.json
Normal file
1
CommandCollections/手机号、IP 归属地查询.json
Normal file
@ -0,0 +1 @@
|
||||
{"base64Ico":"","cmd":"#coding:utf8\nimport re\nimport requests\n\nquery = \"{{input}}\"\nif re.findall(r'^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$', query):\n\tg = requests.get('https://whois.pconline.com.cn/ip.jsp?ip=' + query).content\n\tprint g.decode(\"gb18030\").encode(\"utf8\")\nelse:\n\tg = requests.get('https://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=' + query).content\n\tprint g.decode(\"gb18030\").encode(\"utf8\")","features":{"cmds":[{"label":"手机号、IP 归属地查询","match":"/(^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$)|(^1[345678]\\d{9}$)/","minNum":1,"type":"regex"}],"code":"regex_tr29og8bdh","explain":"手机号、IP 归属地查询","icon":"logo/python.png"},"hasSubInput":false,"noKeyword":true,"output":"text","program":"python"}
|
Loading…
x
Reference in New Issue
Block a user