
Lv.1
风拂花影渐无形,片叶不惊惟忆君
签名: 2019年入猫,2020年末淡退,2021年寒假前正式退猫。当时认识了许多朋友,但似乎全都退了(不知道是不是受了当时很多大佬退猫的影响),但仍然活跃于岛3(现在叫神岛)。2022年3月初回归,第一个加的工作室叫XPOC文社,认识了凚离,C*等朋友。 现状:制作一个新游戏 friend:凚离,C*,伊柒,云雾,梦狐以及很多人……
在 【Splendid City】招人啦! 中回复
https://box3create.codemao.cn/games/714933054fe94ffc喵f8
2020-06-02T14:48:40 点赞:0
在 【Splendid City】招人啦! 中回复
import requests
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('正在顶帖')
postID = int(input("请输入顶贴id - >>>"))
a = ses.post(f'https://api.codemao.cn/web/forums/posts/{postID}/replies', headers = headers,
data = dumps({'content': "<p>喵</p>"}))
print("成功" if a.status_code == 201 else "失败")2020-06-03T08:51:56 点赞:0