def single_thread_solve():
"""
???????????????, ????????, ??????????
"""
with open("solve_result.txt", "w") as f:
check_codes = dict()
for i in range(355, 1000 + 1):
# ??? 1 ? 1000 ??????????
check_code = get_verify_code(i, check_codes, f)
# ????
url = ("http://www.qlcoder.com/train/handsomerank?_token=d4texP05ci7veIAztvnwe5yETOFhlLWkSaBYC51B"
"&user=w%40tch&checkcode={}".format(check_code))
while True:
try:
response = requests.get(url, timeout=10)
if "?????" not in response.text:
print("[+] ????? {} ?".format(i), file=f)
except (ConnectTimeout, ReadTimeout, ValueError, ConnectionError, TooManyRedirects):
print("[-] ??? {} ???".format(i), file=f)
else:
break
评论列表
文章目录