给大家推荐一个我常用的免费F墙工具,特洛伊 TLY,附TLY自动签到python代码
软件叫特洛伊 TLY是它的首拼音首字母,还是蛮好记的

软件下载地址:
其实都不用买会员,流量可以通过签到,直接点击签到,随机获取100-500M流量
最后,附上自动签到代码,转自52pojie大神
import time
import requests
import base64
import json
from datetime import datetime
cookie = "" #替换成你的cookie
token = "" #验证码token
URL = 'http://www.bhshare.cn/imgcode/'
# http://www.bhshare.cn/imgcode/gettoken 这里申请token
def imgcode_online(imgurl):
data = {
'token':token,
'type':'online',
'uri':imgurl
}
response = requests.post(URL,data=data)
print(response.text)
result = json.loads(response.text)
if result['code'] == 200:
print(result['data'])
return result['data']
else:
print(result['msg'])
return 'error'
#if __name__ == '__main__':
# imgcode_online('https://tly22.com/other/captcha.php')
def getmidstring(html,start_str,end):
start = html.find(start_str)
if start >= 0:
start += len(start_str)
end = html.find(end,start)
if end >= 0:
return html[start:end].strip()
def tly():
signUrl="https://tly22.com/modules/index.php"
hearder={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50','Cookie':cookie}
res=requests.get(url=signUrl,headers=hearder).text
signtime=getmidstring(res,'
上次签到时间:','
')
timeArray = time.strptime(signtime,"%Y-%m-%d %H:%M:%S")
timeStamp = int(time.mktime(timeArray))
t = int(time.time())
if t-timeStamp>86400:
print("距上次签到时间大于24小时,可签到")
#获取验证码图片
captchaUrl="https://tly22.com/other/captcha.php"
signurl="https://tly22.com/modules/_checkin.php?captcha="
hearder={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50','Cookie':cookie}
res1=requests.get(url=captchaUrl,headers=hearder)
base64_data = base64.b64encode(res1.content)
oocr=imgcode_online('data:image/jpeg;base64,'+str(base64_data,'utf-8'))
res2=requests.get(url=signurl+oocr.upper(),headers=hearder).text
print(res2)
else:
print("还未到时间!",t-timeStamp)
print("上次签到时间:",signtime)
def main_handler(event,context):
tly()
if __name__ == '__main__':
tly()