用户:***查看:29 回复:14 评论:29 创建时间:2020-07-18T17:25:57
如题,怎样挖坟最快?
https://shequ.cod喵/community/ +1000多的数字,有些没有,但很多都是2015.6的
比如 https://shequ.cod喵/community/88
点赞0
评论
蒟蒻OIer1048576import requests
import time
from guimaker import inputbox
from bs4 import BeautifulSoup
from json import loads,dumps
ses = requests.session()
headers = {"Content-Type": "application/json", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; ) AppleWebKit/537.36 (KH喵L, like Gecko) Chrome/81.0.4044.138 Safari/537.36"}
print('正在寻找登录密钥...')
soup = BeautifulSoup(requests.get('https://shequ.codemao.cn', headers = headers).text, 'h喵l.parser')
pid = loads(soup.find_all("script")[0].string.split("=")[1])['pid']
print('秘药为:',pid)
print('正在登录')
a = ses.post('https://api.codemao.cn/tiger/v3/web/accounts/login', headers = headers,
data = dumps({"identity": "手机号", "password": "密码", "pid": pid}))
if a.status_code == 200:
print("登录成功")
else:
exit("不能登录编程猫")
print('正在挖坟')
for postID in range(59,20000):
a = ses.post(f'https://api.codemao.cn/web/forums/posts/{postID}/replies', headers = headers,
data = dumps({'content': "<p>挖坟</p>"}))
print(f"我一洛阳铲挖{postID}好帖子" if a.status_code == 201 else f"{postID}号帖子太坚硬,挖不了")
time.sleep(5)点赞0
评论