用户:
全宇宙最酸的柠檬查看:125 回复:18 评论:125 创建时间:2021-11-30T18:10:51
这次得小心了,在知识帝黑历史里的人。怼过知识帝的人都小心点。恶意举报,我先die了。
这次的他找遍你的所有角落,找到你的所有评论,进行极限举报,我已经有3个了
都小心点,特别是喷子咸鱼、nomand、水栩裸、一楼余晖以及高仿都小心点。我可能得封号了,因为我的涉及范围很广(指评论)
执着的独角蛛编程boss之无敌红客知识帝请删除所有这个贴,才算给你们那个**编辑器秘钥,这个编辑器我会找官方做一下,易语言这个消耗系统资源比较大,所以我把比易语言更厉害的设计图给弄出来了,减少掉发。惊喜不
点赞0
评论
一缕余晖import requests
import time
import re
url = 411953
times = 0
headers = {
'Accept': 'application/json, text/plain, */*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Connection': 'keep-alive',
'Content-Type': 'application/json;charset=UTF-8',
'Cookie': '',
'Host': 'api.codemao.cn',
'Origin': 'https://shequ.codemao.cn',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-site',
'User-Agent': ''
}
html = requests.get(
'https://api.codemao.cn/web/forums/posts/{}/details'.format(4555555), headers=headers).json()
error = html
slep = False
def tryy(url, headers, error):
html = requests.get(url, headers=headers).json()
try:
if html['error_code'] == error['error_code']:
return False
else:
return True
except:
return True
def sleep(url, headers, error):
html = requests.get(
'https://api.codemao.cn/web/forums/posts/{}/details'.format(url), headers=headers).json()
try:
if html['error_code'] == error['error_code']:
return True
else:
return False
except:
return False
def match(text):
last = None
first = re.search('互',text)
if first != None:
first = first.group()
first = '{}.*?'.format(first)
second = re.search('{}赞|{}关|{}收藏|{}再创|{}在创|{}在创作|{}再创作'.format(
first,first,first,first,first,first,first),text)
if second != None:
second = second.group()
last = 1
print(second)
else:
first = re.search('[点赞]',text)
if first != None:
first = first.group()
first = '{}.*?'.format(first)
second = re.search('{}能不能|{}可否|{}看一下|{}给|{}点|{}赞|{}也'.format(
first,first,first,first,first,first,first),text)
if second != None:
second = second.group()
last = 2
print(second)
else:
first = re.search('0-20|一|二|三|四|五|六|七|八|九|十',text)
if first != None:
first = first.group()
second = re.search('{}赞|{}关|{}收藏|{}再创|{}在创|{}在创作|{}再创作'.format(
first,first,first,first,first,first,first),text)
if second != None:
second = second.group()
second = '{}.*?'.format(second)
third = re.search('{}[回换]'.format(second),text)
if third != None:
third = third.group()
third = '{}.*?'.format(third)
fourth = re.search('{}赞|{}关|{}收藏|{}再创|{}在创|{}在创作|{}再创作'.format(
third,third,third,third,third,third,third),text)
if fourth != None:
fourth = fourth.group()
print(fourth)
last = 3
return last
def communityprint(resp,url):
userid = int(resp['user']['id'])
username = resp['user']['nickname']
print('-----------------')
print(userid)
print('-----------------')
print(username)
print('-----------------')
print('https://shequ.codemao.cn/community/' + str(url))
def answer(url,times, headers, error):
while True:
boo = tryy(
'https://api.codemao.cn/web/forums/posts/{}/details'.format(url), headers, error)
if boo == True:
resp = requests.get('https://api.codemao.cn/web/forums/posts/{}/details?offset=1&limit=10'.format(url),headers = headers).json()
text = resp['content'] + resp['title']
answer_ = requests.get(
'https://api.codemao.cn/web/forums/posts/{}/replies?page=1&limit=10&sort=-created_at'.format(url),headers = headers).json()
for i in answer_['items']:
true = re.search('不|杜绝|远离|萌新|互赞大佬|互赞的大佬|xxs|xs|小学生|小孩子|小孩纸|pen|屁|pi|毛',i['content'])
if match(i['content']) != None and true == None:
communityprint(i,url)
true = re.search('不|杜绝|远离|萌新|互赞大佬|互赞的大佬|xxs|xs|小学生|小孩子|小孩纸|pen|屁|pi|毛',text)
if true == None:
if match(text) != None:
communityprint(resp,url)
url += 1
times = 0
elif times < 5:
answer(url+1,times+1, headers, error)
if times > 0:
break
else:
return True, url
break
elif times == 5:
break
while 1:
if slep == True:
slep = sleep(url, headers, error)
else:
slep, url = answer(url, times, headers, error)
点赞1
评论