forked from zzp198-old/IPV6_VPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
42 lines (39 loc) · 1.48 KB
/
main.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
import datetime
import time
from pyquery import PyQuery
import pyttsx3
engine = pyttsx3.init()
engine.setProperty('rate', 250)
while True:
try:
doc = PyQuery(url="https://woiden.id/create-vps/", )
for i in doc.find("#datacenter").children():
if "best" in i.text.lower():
print("best出现了,赶紧去抢啊!")
engine.say("best出现了,赶紧去抢啊!")
engine.runAndWait()
if i.text != "-select-":
print(i.text)
print(f"{datetime.datetime.now()}-------------")
time.sleep(3)
except:
pass
try:
# 其实hax的可抢可不抢,虽然是kvm架构,但是速度和性能相比best差了一大截(
# 2023.2.8 us-openvz要比hax的kvm速度快很多,与best不相上下,推荐
doc = PyQuery(url="https://hax.co.id/create-vps/")
for i in doc.find("#datacenter").children():
# if "eu-1" in i.text.lower():
# print("eu-1出现了,赶紧去抢啊!")
# engine.say("eu-1出现了,赶紧去抢啊!")
# engine.runAndWait()
if "us" in i.text.lower():
print("us出现了,赶紧去抢啊!")
engine.say("us出现了,赶紧去抢啊!")
engine.runAndWait()
if i.text != "-select-":
print(i.text)
print(f"{datetime.datetime.now()}-------------")
time.sleep(3)
except:
pass