嘿哟博客

输入关键词搜索文章

↑↓选择

Enter打开

Esc关闭

手记

吾爱破解-sign

放一个之前一种在的python脚本,现在改用蛋哒签到,把py放出来共参考。

共 893 字约 1 分钟

放一个之前一种在的python脚本,现在改用蛋哒签到,把py放出来共参考。

import requests 
#import bs4
from bs4 import BeautifulSoup

def pushinfo(info,specific):
    headers={   
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36',
    'ContentType': 'text/html'
    }
    requests.session().get("https://sc.ftqq.com/你的server酱SCKEY.send?text=" + info + "&desp=" + specific,headers=headers)


def main(*args):
    headers={
        'Cookie': '你的cookie值' ,
        'ContentType':'text/html;charset=gbk'
    }
    requests.session().get('https://www.52pojie.cn/home.php?mod=task&do=apply&id=2',headers=headers)
    a=requests.session().get('https://www.52pojie.cn/home.php?mod=task&do=draw&id=2',headers=headers)
    b=BeautifulSoup(a.text,'html.parser')          
    c=b.find('div',id='messagetext').find('p').text

    if "您需要先登录才能继续本操作"  in c: 
        pushinfo("Cookie失效", c)
    elif "恭喜"  in c:
        pushinfo("吾爱破解签到成功",c)
    else:
        pushinfo("吾爱破解签到失败",c)
    print(c)


if __name__ == '__main__':
    main()

在浏览器提取cookie后放入相应的的位置即可

评论