This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFUCK_YOU.py
48 lines (42 loc) · 1.7 KB
/
FUCK_YOU.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 监视偷视频者的代码
# 此代码将长期运行
from os import execv
import bilib
import requests
import json
import time
FUCKER_video_counter = 0
FUCKER_newest_video_number = 0
def send_notice_ifttt(text):
url = f"https://maker.ifttt.com/trigger/home_inside_network_issue/with/key/"
payload = {"value1": text}
headers = {"Content-Type": "application/json"}
while True:
response = requests.request("POST",url,data=json.dumps(payload),headers=headers)
if str(response.text)[0:15] == 'Congratulations':
print(str(text))
break
else:
print("Resending...")
while True:
FUCKER_video_list = bilib.up_video_list(402157092,1)['video_list']
while True:
try:
FUCKER_video_list[FUCKER_video_counter]
print(("===第%s个视频===")%(str(FUCKER_video_counter+1)))
print("标题:",end="")
print(FUCKER_video_list[FUCKER_video_counter]["title"])
print("BVID:",end="")
print(FUCKER_video_list[FUCKER_video_counter]["bvid"])
print("描述:",end="")
print(FUCKER_video_list[FUCKER_video_counter]["description"])
if FUCKER_video_counter > FUCKER_newest_video_number:
message = str("那个逼发视频了:\n%s(%s)")%(str(FUCKER_video_list[FUCKER_video_counter]["title"]),str(FUCKER_video_list[FUCKER_video_counter]["bvid"]))
FUCKER_newest_video_number = FUCKER_video_counter
send_notice_ifttt(message)
else:
pass
FUCKER_video_counter += 1
except KeyError:
break
time.sleep(600)