-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
37 lines (29 loc) · 870 Bytes
/
run.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
# -*- coding: utf-8 -*-
# @Time : 2023/5/16 13:58
# @Author : PFinal南丞 <[email protected]
# @File : run.py
# @Software: PyCharm
from logger import logger
from spilder.get66ip import get66Ip
from spilder.getBeesproxy import GetBeesproxy
from spilder.getGeoNodeIp import GetGeoNode
from spilder.getIp3366ip import GetIp3366
from spilder.getLumiproxy import GetLumiproxy
def run():
"""Run the"""
logger.info("开始定时")
# executors = {
# 'default': ThreadPoolExecutor(30) # 最大线程数30
# }
# scheduler = BackgroundScheduler(executors=executors)
try:
GetLumiproxy(1).run()
# GetIp3366(1).run() # 导入Ip3366
# GetGeoNode().run()
# get66Ip()
# GetBeesproxy(1).run()
except Exception as e:
print(e)
# scheduler.start()
if __name__ == '__main__':
run()