-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrm.py
31 lines (26 loc) · 768 Bytes
/
rm.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import requests
import random
import time
import keys
def main():
names = list()
with open("./names.tsv", "r") as f:
for line in f.readlines():
_, ch, ja, en = line.strip().split("\t")
names.append((en, ja, ch))
for idx, (en, ja, ch) in enumerate(names[:252]):
r = requests.post(
keys.url + "/emoji.remove",
data={
"token": keys.token,
"name": f"pm-{idx+1:03d}-{ch}-{en}",
},
headers={
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": keys.cookie,
},
)
print(idx + 1, r.json())
time.sleep(random.uniform(1, 2))
if __name__ == "__main__":
main()