Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lpxks committed Jul 8, 2024
1 parent 771f1b9 commit 149368c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def push(content):
content = '签到前剩余总流量: ' + remain[0] + 'GB\n' + content + '\n当前剩余总流量: ' + total[0] + 'GB';
push(content)
except:
content = '签到失败'
print(content)
push(content)
total_html = session.get(url = user_url,headers = header).text;
total = re.findall('<span class="counter">(.*?)</span> GB', total_html, re.S);
content = '签到失败' + ',当前剩余总流量: ' + total + "GB"
print(content);
push(content);

0 comments on commit 149368c

Please sign in to comment.