mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 21:58:03 +08:00
🔨 修复 【百度贴吧】数量太少签到失败的原因;
🔨 修复 【腾讯视频】错误提示不明确的 BUG。
This commit is contained in:
parent
2c9e623482
commit
b10ceb4e58
@ -31,7 +31,10 @@ class TiebaCheckIn:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def tieba_list_more(session):
|
def tieba_list_more(session):
|
||||||
content = session.get(url="http://tieba.baidu.com/f/like/mylike?&pn=1", timeout=(5, 20))
|
content = session.get(url="http://tieba.baidu.com/f/like/mylike?&pn=1", timeout=(5, 20))
|
||||||
|
try:
|
||||||
pn = int(re.match(r".*/f/like/mylike\?&pn=(.*?)\">尾页.*", content.text, re.S | re.I).group(1))
|
pn = int(re.match(r".*/f/like/mylike\?&pn=(.*?)\">尾页.*", content.text, re.S | re.I).group(1))
|
||||||
|
except Exception as e:
|
||||||
|
pn = 1
|
||||||
next_page = 1
|
next_page = 1
|
||||||
pattern = re.compile(r".*?<a href=\"/f\?kw=.*?title=\"(.*?)\">")
|
pattern = re.compile(r".*?<a href=\"/f\?kw=.*?title=\"(.*?)\">")
|
||||||
while next_page <= pn:
|
while next_page <= pn:
|
||||||
|
@ -53,6 +53,7 @@ class VQQCheckIn:
|
|||||||
url = "https://vip.video.qq.com/fcgi-bin/comm_cgi?name=hierarchical_task_system&cmd=2&_=" + str(this_time)
|
url = "https://vip.video.qq.com/fcgi-bin/comm_cgi?name=hierarchical_task_system&cmd=2&_=" + str(this_time)
|
||||||
res = requests.get(url=url, headers=headers, cookies=cookies)
|
res = requests.get(url=url, headers=headers, cookies=cookies)
|
||||||
res.encoding = "utf8"
|
res.encoding = "utf8"
|
||||||
|
try:
|
||||||
ret = re.search(r'ret": (\d+),', res.text).group(1)
|
ret = re.search(r'ret": (\d+),', res.text).group(1)
|
||||||
if ret == "0":
|
if ret == "0":
|
||||||
try:
|
try:
|
||||||
@ -67,6 +68,8 @@ class VQQCheckIn:
|
|||||||
msg = "非会员无法签到"
|
msg = "非会员无法签到"
|
||||||
else:
|
else:
|
||||||
msg = res.text
|
msg = res.text
|
||||||
|
except Exception as e:
|
||||||
|
msg = res.text
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user