#!/usr/bin/python3 # -- coding: utf-8 -- # ------------------- # @Author: cloudcranes # @Time: 2024/06/04 21:54 # const $ = new Env("吾爱破解") import re from datetime import datetime import requests from send import send from qinglong import ql now = datetime.now() # ck获取 https://www.52pojie.cn/forum.php # ck格式 完整cookie # wapj_data = 'htVC_2132_visitedfid=24; Hm_lvt_46d556462595ed05e05f009cdafff31a=1717219682,1717507150; htVC_2132_saltkey=g7037uws; htVC_2132_lastvisit=1717489702; wzws_sessionid=gDM2LjU2Ljg0LjE3MoJkYjFjYWGgZl8UWoE1NGU1YTQ=; Hm_lpvt_46d556462595ed05e05f009cdafff31a=1717507160; htVC_2132_seccodecSRKk=1939482.ed497f50ec2e24ff25; htVC_2132_ulastactivity=1717507149%7C0; htVC_2132_auth=aa9ddejd4OTFj8o9Fm2LYd17HhwJmNgeH6ROae23BIuTzhCS0W2Iwd5%2BQuBcrlh3lO59ZONsMpate2EGNS9eijVphOSf; htVC_2132_lastcheckfeed=2002841%7C1717507149; htVC_2132_checkfollow=1; htVC_2132_lip=36.56.84.172%2C1717507149; htVC_2132_lastact=1717507154%09misc.php%09seccode; htVC_2132_connect_is_bind=1; htVC_2132_seccodecS=1939503.27fc6acc25ca6ab0ac' class wapj: def __init__(self, ck): self.wapjck = ck self.headers_1 = { 'Host': 'www.52pojie.cn', 'Referer': 'https://www.52pojie.cn/forum.php', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', } self.host = 'https://www.52pojie.cn' self.msg = '##【吾爱破解】\n' def get_user_info(self): url = self.host + '/home.php?mod=spacecp&ac=credit&showcredit=1' headers = self.headers_1.copy() headers['Cookie'] = ck try: res = requests.get(url=url, headers=headers, timeout=10) # 根据正则规则匹配返回的html语言,提取用户名、吾爱币(纯数字) # Alanmaster #