|
|
发表于 2020-8-1 12:27:38
|
显示全部楼层
封装成函数了

还有没有类似的短网址网站
[ol]def cli(target_url, domain_index=0): domain = ['my.sv', '4.fo', 'in.sv', 'vk.sv', 'tg.sv', 'yt.sv', 'fb.sv', 'link.sv', 'go.sv', 'to.sv', 'dl.sv', 'tw.sv', 'it.sv', 'cli.co'] json = {"domain": domain[domain_index], "is_deep": False, "target_url": target_url} r = requests.post('https://cli.co/api/v1/link', json=json) return r.json()['result'][/ol]复制代码 |
|