From b4a57bce8448f51ba1b7165daea6afbd857bf969 Mon Sep 17 00:00:00 2001 From: EditorWang Date: Fri, 26 Nov 2021 13:06:45 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20=5F?= =?UTF-8?q?=5Fpycache=5F=5F/app.cpython-38.pyc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __pycache__/app.cpython-38.pyc | Bin 2135 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 __pycache__/app.cpython-38.pyc diff --git a/__pycache__/app.cpython-38.pyc b/__pycache__/app.cpython-38.pyc deleted file mode 100644 index 797b50356c7369637c227987f2608c53304108ef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2135 zcmZuyTW=dh6rS0e*Oxes+a?XS7K%{KLy8bm)e51e@wNmdHciq9MupYJGfCF0cb(aB zFH!oG^4NdS2j{W>1;P8g^3=ZoNN~=qU6QtI%{OQ6=bZ1HluU{PYVdw7>-r#f32%kH)*adOnn6P;@>=(9xE5@$1+0SNo$ki^@)oNZd37yV@3w>gN1f&M zfYouWy}T6^dt0t{6Y)?a+S|?KAX3`jjT14*xG1DF8VFY6krKND)uU+W|p8jkY z+=7jmXDcb+*AX)gDGWrvrz553FFyaK()tGot%$uK;lOA}2x$b%GW zB-6LN;lLxt8()CH!4DysdIMxj*~j3c&;kEAV^?{qG`y<(6APmgqR8sJ!USrSS!obG zUR7csF=aG8ka)2!=hG-*wTSaDiE|}Va0ps1(Nc+YyrkO6MY3zWTEHwG_rov-Uxwi# zjB+2qIF9=CuraZ1X}aYt%UsxPEPD?G)RwB!~P9~+tj4FdC57(ca+tTy@S^QSi00)ca6 z^U@*#gaQT#1q=`h7_Yu?usj|tnQ*FgnD^E7>(_65sU1k)NIMuX%zcQR#N?Id0Cbg$ zyeH!#H|=5E)2@nD0_mTRc8t_={!th`eCB=%o2scPf75O0o8YHhGV5K_+n3!@701xDt{XVU`zUA9~&CIthYCC_D zYb(p;r?~kug!cioGmO-}_Mk9|l`}VAlRkTtFQOvOFNT4 zB2#IY9Svi{Ci8k(x*P8m+3Et>BVmdXtL{X3+*>JDO#wnPG#wPizQa!Ke_eR%8zd=5 aYc2z?=V^o1il5~a3?u&S`My_Q^yq(9x!$t? -- Gitee From dde04277813975eff6229e9e447a9226afa1a204 Mon Sep 17 00:00:00 2001 From: EditorWang Date: Fri, 26 Nov 2021 13:07:46 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20..gi?= =?UTF-8?q?tignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..gitignore | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 ..gitignore diff --git a/..gitignore b/..gitignore deleted file mode 100644 index 5d7a16d..0000000 --- a/..gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.log -*.json -/__pycache__ \ No newline at end of file -- Gitee From 2cb4a06cab006abef32fba0fda6741eb3cb362b5 Mon Sep 17 00:00:00 2001 From: EditorWang Date: Fri, 26 Nov 2021 21:11:58 +0800 Subject: [PATCH 3/7] --- ..gitignore => .gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ..gitignore => .gitignore (100%) diff --git a/..gitignore b/.gitignore similarity index 100% rename from ..gitignore rename to .gitignore -- Gitee From 1317656c5aaea5b1b88f9fa5489e542fd8bbb18b Mon Sep 17 00:00:00 2001 From: SteveWang Date: Mon, 29 Nov 2021 03:48:09 -0800 Subject: [PATCH 4/7] =?UTF-8?q?fix(spider):=E4=BF=AE=E5=A4=8D=E4=BA=86412?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +- .gitigonre | 3 + README.md | 54 ++--- app.py | 125 +++++----- data.json | 1 + lib/__pycache__/config.cpython-38.pyc | Bin 547 -> 524 bytes lib/api.py | 2 +- lib/config.py | 58 ++--- log.log | 329 ++++++++++++++++++++++++++ requirements.txt | 4 +- tools/cli.py | 48 ++-- 11 files changed, 484 insertions(+), 144 deletions(-) create mode 100644 .gitigonre diff --git a/.gitignore b/.gitignore index 5d7a16d..e534df9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -*.log -*.json +*.log +*.json /__pycache__ \ No newline at end of file diff --git a/.gitigonre b/.gitigonre new file mode 100644 index 0000000..bf17db9 --- /dev/null +++ b/.gitigonre @@ -0,0 +1,3 @@ +*.log +*.json + diff --git a/README.md b/README.md index ac1b66e..02cc726 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,27 @@ -# Video Monitor - -## 运行方式 - -1. git clone -2. cd -3. python app.py - - -## 开发环境 - -- python 3.8.8 -- 库 - - 详见requirement.txt - -## 开发进度 -- 基础监测 --- 99% -- cli --- 0% - -## issue要求 - -fix|doc|feat(模块):本次修复的描述 - -例 -> feat(cli): 新增了____功能 - -> fix(app): 修复了_____bug +# Video Monitor + +## 运行方式 + +1. git clone +2. cd +3. python app.py + + +## 开发环境 + +- python 3.8.8 +- 库 + - 详见requirement.txt + +## 开发进度 +- 基础监测 --- 99% +- cli --- 0% + +## issue要求 + +fix|doc|feat(模块):本次修复的描述 + +例 +> feat(cli): 新增了____功能 + +> fix(app): 修复了_____bug diff --git a/app.py b/app.py index 6946949..9d3cfc5 100644 --- a/app.py +++ b/app.py @@ -1,59 +1,66 @@ -import sys,os,requests,json -import logging -sys.path.append(os.path.abspath('./lib')) -from apscheduler.events import EVENT_JOB_ERROR, EVENT_JOB_EXECUTED -from apscheduler.schedulers.blocking import BlockingScheduler -from api import REQUEST_VDIEO_VDIEOLIST -from config import CONFIG - -logging.basicConfig( - level=CONFIG['LOG_LEVEL'], - format=CONFIG['LOG_FORMAT'], - filemode=CONFIG['LOG_FILEMODE'], - filename=CONFIG['LOG_FILENAME'], - datefmt=CONFIG['LOG_DATEFORMAT'] -) - -def errorCatch(event): - if (event.exception): - print(event.exception) - else: - pass - -class Monitor: - def __init__(self) -> None: - self.maxItem = 10 - self.q = [] - self.scheduler = BlockingScheduler() - self.scheduler.add_listener(errorCatch,EVENT_JOB_EXECUTED or EVENT_JOB_ERROR) - def loop(self): - self.scheduler.add_job(self.job,"interval",hours=CONFIG['BASIC_LOOPDELAY']) - self.scheduler._logger = logging - self.scheduler.start() - def job(self): - response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792') - if (response.status_code == 200): - logging.info('Request Success') - rawData = response.json()['data']['list']['vlist'][0:10] - for i in rawData: - self.q.append( - { - 'description': i['description'], - 'pic': i['pic'], - 'title': i['title'], - 'subtitle': i['subtitle'], - } - ) - if (not os.path.exists(CONFIG['SAVE_LOCATION'])): - os.mkdir(CONFIG['SAVE_LOCATION']) - fs=open(CONFIG['SAVE_LOCATION'] + CONFIG['SAVE_FILENAME'],'w',encoding='utf-8') - else: - fs=open(CONFIG['SAVE_LOCATION'] + CONFIG['SAVE_FILENAME'],'w',encoding='utf-8') - fs.write(json.dumps(self.q,ensure_ascii=False)) - self.q = [] - else: - logging.info('Reqeust Fail') - def runNow(self): - self.job() -m = Monitor() -m.loop() \ No newline at end of file +import sys,os,requests,json +import logging +sys.path.append(os.path.abspath('./lib')) +from apscheduler.events import EVENT_JOB_ERROR, EVENT_JOB_EXECUTED +from apscheduler.schedulers.blocking import BlockingScheduler +from api import REQUEST_VDIEO_VDIEOLIST +from config import CONFIG +from fake_useragent import UserAgent + +logging.basicConfig( + level=CONFIG['LOG_LEVEL'], + format=CONFIG['LOG_FORMAT'], + filemode=CONFIG['LOG_FILEMODE'], + filename=CONFIG['LOG_FILENAME'], + datefmt=CONFIG['LOG_DATEFORMAT'], + ) + +def errorCatch(event): + if (event.exception): + print(event.exception) + else: + pass +ua = UserAgent(verify_ssl=False) +class Monitor: + def __init__(self) -> None: + self.maxItem = 10 + self.q = [] + self.scheduler = BlockingScheduler() + self.scheduler.add_listener(errorCatch,EVENT_JOB_EXECUTED or EVENT_JOB_ERROR) + def loop(self): + self.scheduler.add_job(self.job,"interval",hours=CONFIG['BASIC_LOOPDELAY']) +# self.scheduler.add_job(self.job, "interval", seconds=2) + self.scheduler._logger = logging + self.scheduler.start() + def job(self): + response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792',headers={ + 'User-Agent': ua.random + }) + if (response.status_code == 200): + logging.info('Request Success') + rawData = response.json()['data']['list']['vlist'][0:10] + for i in rawData: + self.q.append( + { + 'description': i['description'], + 'pic': i['pic'], + 'title': i['title'], + 'subtitle': i['subtitle'], + } + ) + if (not os.path.exists(CONFIG['SAVE_LOCATION'])): + os.mkdir(CONFIG['SAVE_LOCATION']) + fs=open(CONFIG['SAVE_LOCATION'] + CONFIG['SAVE_FILENAME'],'w',encoding='utf-8') + else: + fs=open(CONFIG['SAVE_LOCATION'] + CONFIG['SAVE_FILENAME'],'w',encoding='utf-8') + fs.write(json.dumps(self.q,ensure_ascii=False)) + self.q = [] + logging.info("{0} save success".format(CONFIG['SAVE_LOCATION'] + CONFIG['SAVE_FILENAME'])) + print("{0} save success".format(CONFIG['SAVE_LOCATION'])) + else: + logging.error('Reqeust Fail') + logging.error('Because: {0}'.format(response.status_code)) + def runNow(self): + self.job() +m = Monitor() +m.loop() diff --git a/data.json b/data.json index e69de29..edff216 100644 --- a/data.json +++ b/data.json @@ -0,0 +1 @@ +[{"description": "我真的不太怕鬼,其实我比较怕人的()\n毕竟之前也是玩恐怖游戏的呀喂!\n————————————————————\n视频/时轴:小M\n封面:加爱心眼未遂于是加了奇怪东西的惠惠\n————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/d11594aed315209c8f65cf546a6cc1403f9d2a4f.jpg", "title": "呜呜呜求求你们不要吓我了可恶!", "subtitle": ""}, {"description": "我们默契一直都挺不错的(?)\n————————————————\n视频/时轴:太古映画\n封面:啾啾\n————————————————", "pic": "http://i1.hdslb.com/bfs/archive/76cd0f842ff27f20253874665a493b71da5332a2.jpg", "title": "这就叫做老婆间的默!契!", "subtitle": ""}, {"description": "夕兔:下次雪狐再要想吃我就是吃自己了!\n雪狐:我吃我自己()\n——————❤—————\n原唱 阿肆 & 郭采洁\n词曲 阿肆\n编曲 韦伟\n翻唱 雪狐桑 & 夕兔\n混音 圈太Studio\n立绘 灯花-紫\nPV 三星堆工作室\n——————❤—————", "pic": "http://i1.hdslb.com/bfs/archive/fb06c8a480fe0033c50be34f71ec1d69845f3c29.jpg", "title": "【雪狐桑x夕兔】世界上的另一个我【彼此多难得】", "subtitle": ""}, {"description": "我真的是无辜的(举手)\n——————————————————————\n视频:sora\n后期/时轴:sairai\n封面:惠惠\n——————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/7577eb973f51a30a09288b6768f24bab6d89d94f.jpg", "title": "上班看大家都懂的抱枕图什么的……你听我解释!!!", "subtitle": ""}, {"description": "被这个洗脑了好久,听得有点想哭\n这个动画里面每一个人都是在自己视角内的孤勇者吧\n我也想当,可惜我没有勇气\n还有为什么声音怎么也燃不起来,也高不上去,气死我惹\n倒是因为想哭一直在颤颤颤颤(不过本来也是唱不好)\n还差两集没看,下午去看看大结局(倒)\n——————————————————————————\n原唱:陈奕迅 https://www.bilibili.com/video/BV1wr4y1y7nx\n混音:三星堆工作室\n——————————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/a7c2dc629228db1c13b338c5aa04ff2e9f0786af.jpg", "title": "温柔女声翻唱《孤勇者》如果你不能流泪的话,我来替你哭吧", "subtitle": ""}, {"description": "诶嘿嘿老子才是主人!\n————————————————\n视频/时轴:枫起\n封面:么羊\n————————————————", "pic": "http://i2.hdslb.com/bfs/archive/91543007ae3c94abbd7ede6adbe95b13189e6757.jpg", "title": "主播才不是你的电子宠物呢!", "subtitle": ""}, {"description": "写不出来简介了(躺)\n——————————————————\n视频:小M\n时轴:玙子\n封面:Ling伊\n——————————————————", "pic": "http://i2.hdslb.com/bfs/archive/0d017dd7007000cd64456b5b385629acef903690.jpg", "title": "看见这20万粉了吗?拿智商换的QAQ", "subtitle": ""}, {"description": "恭喜EDG拿下S11冠军!!!\n本来想立刻发出来的,后来想了想在夺冠后的第七天的星期七发也挺好的hhh\n想了想自己的黄铜账号(跑)\n——————————————————————————\n视频/时轴:还在为猛犸难过但是还要被迫来切片的小M\n封面:Ling伊\n——————————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/ba4a76003e0326be75b10294e9ae786d8d64a7bb.jpg", "title": "虽然不能说脏话但是EDG NB!", "subtitle": ""}, {"description": "哼!一群大坏蛋!\n——————————————————\n视频:啾啾\n时轴:战月\n封面:惠惠\n——————————————————", "pic": "http://i2.hdslb.com/bfs/archive/450f659eb4b951a0f65b3f33adb7bf3cc38c1a00.jpg", "title": "我是因为傻才会说喜欢你的!才不是傲娇什么的!", "subtitle": ""}, {"description": "联动不专心 老婆两行泪(\n喜欢视频的话可以点个小小滴三连!\n--------------------------------\n\n雪狐桑的直播:https://live.bilibili.com/24393\nsayako的直播:https://live.bilibili.com/21749031", "pic": "http://i0.hdslb.com/bfs/archive/98478ceef12718e576d1ff8c08d6c381437f3a99.jpg", "title": "我竟然被联动对象当面NTR了!?", "subtitle": ""}] \ No newline at end of file diff --git a/lib/__pycache__/config.cpython-38.pyc b/lib/__pycache__/config.cpython-38.pyc index edfe81aec091d0cf8b5742118abc5fcf1a7f246f..cb4ccb62b04462c3deeae7aa414034d287939bc4 100644 GIT binary patch delta 263 zcmZ3?(!;_V%FD~e00cIBmn7y-r@gWEH!feoA6VqW&%3V8<|5poFtyh^N0_6(>-1;{8pbthbnpD~oS29rljWk e=I3RW-Sz&&k0IgsdEl5C{O^v_*>m delta 250 zcmeBSSa%%OA5OULkb6w z=Col*Wd_n*Kt4B+<^j^YK$;Io^8;xCAT0=_g@80;FoUM>OOWAynvAztJpJ7KUoruC zxA>hLgFT(&ef<3cTwHw|BdeJ7^nWqN+~N&(408nvJ5M~lhmn192cx{xEtZ1Bl8jsI ziAlvE#!7}F5ugcR;+LL>Rg80fN@`4SUVgb-enos(W=d+lZ+>28Nq$jGaZz$iPG(Zf U + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/fake_useragent/utils.py", line 154, in load + for item in get_browsers(verify_ssl=verify_ssl): + File "/usr/local/lib/python3.8/dist-packages/fake_useragent/utils.py", line 97, in get_browsers + html = get(settings.BROWSERS_STATS_PAGE, verify_ssl=verify_ssl) + File "/usr/local/lib/python3.8/dist-packages/fake_useragent/utils.py", line 84, in get + raise FakeUserAgentError('Maximum amount of retries reached') +fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached +2021-21-11/29/21 03:21:02 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job +2021-21-11/29/21 03:21:02 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job +2021-21-11/29/21 03:21:02 - [INFO] - Scheduler started-start +2021-21-11/29/21 03:21:12 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:12 PST)" (scheduled at 2021-11-29 03:21:12.395508-08:00)-run_job +2021-21-11/29/21 03:21:12 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:22 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 35, in job + print(ua.random()) +TypeError: 'str' object is not callable +2021-21-11/29/21 03:21:22 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:32 PST)" (scheduled at 2021-11-29 03:21:22.395508-08:00)-run_job +2021-21-11/29/21 03:21:22 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:32 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 35, in job + print(ua.random()) +TypeError: 'str' object is not callable +2021-21-11/29/21 03:21:32 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:42 PST)" (scheduled at 2021-11-29 03:21:32.395508-08:00)-run_job +2021-21-11/29/21 03:21:32 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:42 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 35, in job + print(ua.random()) +TypeError: 'str' object is not callable +2021-21-11/29/21 03:21:51 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job +2021-21-11/29/21 03:21:51 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job +2021-21-11/29/21 03:21:51 - [INFO] - Scheduler started-start +2021-22-11/29/21 03:22:01 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:01 PST)" (scheduled at 2021-11-29 03:22:01.165158-08:00)-run_job +2021-22-11/29/21 03:22:01 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:11 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 36, in job + response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792',headers={ + File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get + return request('get', url, params=params, **kwargs) + File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request + return session.request(method=method, url=url, **kwargs) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request + prep = self.prepare_request(req) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 458, in prepare_request + headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict), + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 69, in merge_setting + merged_setting.update(to_key_val_list(request_setting)) + File "/usr/lib/python3.8/_collections_abc.py", line 838, in update + self[key] = value + File "/usr/lib/python3/dist-packages/requests/structures.py", line 49, in __setitem__ + self._store[key.lower()] = (key, value) +AttributeError: type object 'FakeUserAgent' has no attribute 'lower' +2021-22-11/29/21 03:22:11 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:21 PST)" (scheduled at 2021-11-29 03:22:11.165158-08:00)-run_job +2021-22-11/29/21 03:22:11 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:21 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 36, in job + response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792',headers={ + File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get + return request('get', url, params=params, **kwargs) + File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request + return session.request(method=method, url=url, **kwargs) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request + prep = self.prepare_request(req) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 458, in prepare_request + headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict), + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 69, in merge_setting + merged_setting.update(to_key_val_list(request_setting)) + File "/usr/lib/python3.8/_collections_abc.py", line 838, in update + self[key] = value + File "/usr/lib/python3/dist-packages/requests/structures.py", line 49, in __setitem__ + self._store[key.lower()] = (key, value) +AttributeError: type object 'FakeUserAgent' has no attribute 'lower' +2021-22-11/29/21 03:22:21 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:31 PST)" (scheduled at 2021-11-29 03:22:21.165158-08:00)-run_job +2021-22-11/29/21 03:22:21 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:31 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 36, in job + response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792',headers={ + File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get + return request('get', url, params=params, **kwargs) + File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request + return session.request(method=method, url=url, **kwargs) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request + prep = self.prepare_request(req) + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 458, in prepare_request + headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict), + File "/usr/lib/python3/dist-packages/requests/sessions.py", line 69, in merge_setting + merged_setting.update(to_key_val_list(request_setting)) + File "/usr/lib/python3.8/_collections_abc.py", line 838, in update + self[key] = value + File "/usr/lib/python3/dist-packages/requests/structures.py", line 49, in __setitem__ + self._store[key.lower()] = (key, value) +AttributeError: type object 'FakeUserAgent' has no attribute 'lower' +2021-22-11/29/21 03:22:49 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job +2021-22-11/29/21 03:22:49 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job +2021-22-11/29/21 03:22:49 - [INFO] - Scheduler started-start +2021-22-11/29/21 03:22:59 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:59 PST)" (scheduled at 2021-11-29 03:22:59.126712-08:00)-run_job +2021-22-11/29/21 03:22:59 - [INFO] - Request Success-job +2021-22-11/29/21 03:22:59 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-22-11/29/21 03:22:59 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:09 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 60, in job + print("{0} save success".format(CONFIG['SAVE_LOCATION '])) +KeyError: 'SAVE_LOCATION ' +2021-23-11/29/21 03:23:09 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:19 PST)" (scheduled at 2021-11-29 03:23:09.126712-08:00)-run_job +2021-23-11/29/21 03:23:09 - [INFO] - Request Success-job +2021-23-11/29/21 03:23:09 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-23-11/29/21 03:23:09 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:19 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 60, in job + print("{0} save success".format(CONFIG['SAVE_LOCATION '])) +KeyError: 'SAVE_LOCATION ' +2021-23-11/29/21 03:23:19 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:29 PST)" (scheduled at 2021-11-29 03:23:19.126712-08:00)-run_job +2021-23-11/29/21 03:23:19 - [INFO] - Request Success-job +2021-23-11/29/21 03:23:19 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-23-11/29/21 03:23:19 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:29 PST)" raised an exception-run_job +Traceback (most recent call last): + File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job + retval = job.func(*job.args, **job.kwargs) + File "app.py", line 60, in job + print("{0} save success".format(CONFIG['SAVE_LOCATION '])) +KeyError: 'SAVE_LOCATION ' +2021-23-11/29/21 03:23:50 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job +2021-23-11/29/21 03:23:50 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job +2021-23-11/29/21 03:23:50 - [INFO] - Scheduler started-start +2021-24-11/29/21 03:24:00 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:00 PST)" (scheduled at 2021-11-29 03:24:00.321719-08:00)-run_job +2021-24-11/29/21 03:24:00 - [INFO] - Request Success-job +2021-24-11/29/21 03:24:00 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-24-11/29/21 03:24:00 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:10 PST)" executed successfully-run_job +2021-24-11/29/21 03:24:10 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:20 PST)" (scheduled at 2021-11-29 03:24:10.321719-08:00)-run_job +2021-24-11/29/21 03:24:10 - [INFO] - Request Success-job +2021-24-11/29/21 03:24:10 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-24-11/29/21 03:24:10 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:20 PST)" executed successfully-run_job +2021-24-11/29/21 03:24:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:30 PST)" (scheduled at 2021-11-29 03:24:20.321719-08:00)-run_job +2021-24-11/29/21 03:24:20 - [INFO] - Request Success-job +2021-24-11/29/21 03:24:20 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-24-11/29/21 03:24:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:30 PST)" executed successfully-run_job +2021-24-11/29/21 03:24:30 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:40 PST)" (scheduled at 2021-11-29 03:24:30.321719-08:00)-run_job +2021-24-11/29/21 03:24:30 - [INFO] - Request Success-job +2021-24-11/29/21 03:24:30 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-24-11/29/21 03:24:30 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:40 PST)" executed successfully-run_job +2021-24-11/29/21 03:24:40 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:50 PST)" (scheduled at 2021-11-29 03:24:40.321719-08:00)-run_job +2021-24-11/29/21 03:24:40 - [INFO] - Request Success-job +2021-24-11/29/21 03:24:40 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job +2021-24-11/29/21 03:24:40 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:50 PST)" executed successfully-run_job +2021-25-11/29/21 03:25:50 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job +2021-25-11/29/21 03:25:50 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job +2021-25-11/29/21 03:25:50 - [INFO] - Scheduler started-start +2021-26-11/29/21 03:26:00 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:00 PST)" (scheduled at 2021-11-29 03:26:00.469377-08:00)-run_job +2021-26-11/29/21 03:26:00 - [INFO] - Request Success-job +2021-26-11/29/21 03:26:00 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job +2021-26-11/29/21 03:26:00 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:10 PST)" executed successfully-run_job +2021-26-11/29/21 03:26:10 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:20 PST)" (scheduled at 2021-11-29 03:26:10.469377-08:00)-run_job +2021-26-11/29/21 03:26:10 - [INFO] - Request Success-job +2021-26-11/29/21 03:26:10 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job +2021-26-11/29/21 03:26:10 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:20 PST)" executed successfully-run_job +2021-26-11/29/21 03:26:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:30 PST)" (scheduled at 2021-11-29 03:26:20.469377-08:00)-run_job +2021-26-11/29/21 03:26:20 - [INFO] - Request Success-job +2021-26-11/29/21 03:26:20 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job +2021-26-11/29/21 03:26:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:30 PST)" executed successfully-run_job +2021-26-11/29/21 03:26:30 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:40 PST)" (scheduled at 2021-11-29 03:26:30.469377-08:00)-run_job +2021-26-11/29/21 03:26:30 - [INFO] - Request Success-job +2021-26-11/29/21 03:26:30 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job +2021-26-11/29/21 03:26:30 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:40 PST)" executed successfully-run_job +2021-26-11/29/21 03:26:40 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:50 PST)" (scheduled at 2021-11-29 03:26:40.469377-08:00)-run_job +2021-26-11/29/21 03:26:40 - [INFO] - Request Success-job +2021-26-11/29/21 03:26:40 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job +2021-26-11/29/21 03:26:40 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:50 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:14 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job +2021-29-11/29/21 03:29:14 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job +2021-29-11/29/21 03:29:14 - [INFO] - Scheduler started-start +2021-29-11/29/21 03:29:15 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:15 PST)" (scheduled at 2021-11-29 03:29:15.869915-08:00)-run_job +2021-29-11/29/21 03:29:16 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:16 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:16 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:16 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:16 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:17 PST)" (scheduled at 2021-11-29 03:29:16.869915-08:00)-run_job +2021-29-11/29/21 03:29:17 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:17 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:17 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:17 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:17 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:18 PST)" (scheduled at 2021-11-29 03:29:17.869915-08:00)-run_job +2021-29-11/29/21 03:29:18 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:18 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:18 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:18 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:18 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:19 PST)" (scheduled at 2021-11-29 03:29:18.869915-08:00)-run_job +2021-29-11/29/21 03:29:19 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:19 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:19 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:19 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:19 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:20 PST)" (scheduled at 2021-11-29 03:29:19.869915-08:00)-run_job +2021-29-11/29/21 03:29:20 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:20 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:20 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:21 PST)" (scheduled at 2021-11-29 03:29:20.869915-08:00)-run_job +2021-29-11/29/21 03:29:21 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:21 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:21 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:21 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:21 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:22 PST)" (scheduled at 2021-11-29 03:29:21.869915-08:00)-run_job +2021-29-11/29/21 03:29:22 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:22 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:22 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:22 PST)" executed successfully-run_job +2021-29-11/29/21 03:29:22 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:23 PST)" (scheduled at 2021-11-29 03:29:22.869915-08:00)-run_job +2021-29-11/29/21 03:29:23 - [INFO] - Request Success-job +2021-29-11/29/21 03:29:23 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job +2021-29-11/29/21 03:29:23 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:23 PST)" executed successfully-run_job +2021-45-11/29/21 03:45:06 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job +2021-45-11/29/21 03:45:06 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job +2021-45-11/29/21 03:45:06 - [INFO] - Scheduler started-start +2021-45-11/29/21 03:45:07 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:07 PST)" (scheduled at 2021-11-29 03:45:07.865062-08:00)-run_job +2021-45-11/29/21 03:45:08 - [INFO] - Request Success-job +2021-45-11/29/21 03:45:08 - [INFO] - ./data/data.json save success-job +2021-45-11/29/21 03:45:08 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:08 PST)" executed successfully-run_job +2021-45-11/29/21 03:45:08 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:09 PST)" (scheduled at 2021-11-29 03:45:08.865062-08:00)-run_job +2021-45-11/29/21 03:45:09 - [INFO] - Request Success-job +2021-45-11/29/21 03:45:09 - [INFO] - ./data/data.json save success-job +2021-45-11/29/21 03:45:09 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:09 PST)" executed successfully-run_job +2021-45-11/29/21 03:45:09 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:10 PST)" (scheduled at 2021-11-29 03:45:09.865062-08:00)-run_job +2021-45-11/29/21 03:45:10 - [INFO] - Request Success-job +2021-45-11/29/21 03:45:10 - [INFO] - ./data/data.json save success-job +2021-45-11/29/21 03:45:10 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:10 PST)" executed successfully-run_job +2021-45-11/29/21 03:45:10 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:11 PST)" (scheduled at 2021-11-29 03:45:10.865062-08:00)-run_job +2021-45-11/29/21 03:45:11 - [INFO] - Request Success-job +2021-45-11/29/21 03:45:11 - [INFO] - ./data/data.json save success-job +2021-45-11/29/21 03:45:11 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:11 PST)" executed successfully-run_job +2021-45-11/29/21 03:45:11 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:12 PST)" (scheduled at 2021-11-29 03:45:11.865062-08:00)-run_job diff --git a/requirements.txt b/requirements.txt index cee98d0..e3ef569 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ APScheduler==3.8.1 -MONITOR==0.0.1 -requests==2.25.1 +fake_useragent==0.1.11 +requests==2.22.0 diff --git a/tools/cli.py b/tools/cli.py index dc82ac2..6d50220 100644 --- a/tools/cli.py +++ b/tools/cli.py @@ -1,25 +1,25 @@ -from MONITOR.app import * -print('Monitor Manager Tools v0.1') -def help(): - print("Monitor Manager Tools v0.1") - print("-h -help -- 获取帮助") - print("-update -- 强制更新") - print("-showConfig -- 列出当前配置") -def update(): - handle = Monitor() - handle.job() -def showConfig(): - print(CONFIG) - pass -stateMachine = { - '-h':help, - '-help': help, - '-update': update, - '-showConfig': showConfig -} -while True: - command = input('>: ') - try: - stateMachine[command]() - except Exception as e: +from MONITOR.app import * +print('Monitor Manager Tools v0.1') +def help(): + print("Monitor Manager Tools v0.1") + print("-h -help -- 获取帮助") + print("-update -- 强制更新") + print("-showConfig -- 列出当前配置") +def update(): + handle = Monitor() + handle.job() +def showConfig(): + print(CONFIG) + pass +stateMachine = { + '-h':help, + '-help': help, + '-update': update, + '-showConfig': showConfig +} +while True: + command = input('>: ') + try: + stateMachine[command]() + except Exception as e: print('未知命令{0},您是否输入正确?'.format(command)) \ No newline at end of file -- Gitee From 79d22ecdda85cc75e489aede724b6ffa9dfe92ab Mon Sep 17 00:00:00 2001 From: EditorWang Date: Mon, 29 Nov 2021 11:52:50 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20data?= =?UTF-8?q?.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data.json | 1 - 1 file changed, 1 deletion(-) delete mode 100644 data.json diff --git a/data.json b/data.json deleted file mode 100644 index edff216..0000000 --- a/data.json +++ /dev/null @@ -1 +0,0 @@ -[{"description": "我真的不太怕鬼,其实我比较怕人的()\n毕竟之前也是玩恐怖游戏的呀喂!\n————————————————————\n视频/时轴:小M\n封面:加爱心眼未遂于是加了奇怪东西的惠惠\n————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/d11594aed315209c8f65cf546a6cc1403f9d2a4f.jpg", "title": "呜呜呜求求你们不要吓我了可恶!", "subtitle": ""}, {"description": "我们默契一直都挺不错的(?)\n————————————————\n视频/时轴:太古映画\n封面:啾啾\n————————————————", "pic": "http://i1.hdslb.com/bfs/archive/76cd0f842ff27f20253874665a493b71da5332a2.jpg", "title": "这就叫做老婆间的默!契!", "subtitle": ""}, {"description": "夕兔:下次雪狐再要想吃我就是吃自己了!\n雪狐:我吃我自己()\n——————❤—————\n原唱 阿肆 & 郭采洁\n词曲 阿肆\n编曲 韦伟\n翻唱 雪狐桑 & 夕兔\n混音 圈太Studio\n立绘 灯花-紫\nPV 三星堆工作室\n——————❤—————", "pic": "http://i1.hdslb.com/bfs/archive/fb06c8a480fe0033c50be34f71ec1d69845f3c29.jpg", "title": "【雪狐桑x夕兔】世界上的另一个我【彼此多难得】", "subtitle": ""}, {"description": "我真的是无辜的(举手)\n——————————————————————\n视频:sora\n后期/时轴:sairai\n封面:惠惠\n——————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/7577eb973f51a30a09288b6768f24bab6d89d94f.jpg", "title": "上班看大家都懂的抱枕图什么的……你听我解释!!!", "subtitle": ""}, {"description": "被这个洗脑了好久,听得有点想哭\n这个动画里面每一个人都是在自己视角内的孤勇者吧\n我也想当,可惜我没有勇气\n还有为什么声音怎么也燃不起来,也高不上去,气死我惹\n倒是因为想哭一直在颤颤颤颤(不过本来也是唱不好)\n还差两集没看,下午去看看大结局(倒)\n——————————————————————————\n原唱:陈奕迅 https://www.bilibili.com/video/BV1wr4y1y7nx\n混音:三星堆工作室\n——————————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/a7c2dc629228db1c13b338c5aa04ff2e9f0786af.jpg", "title": "温柔女声翻唱《孤勇者》如果你不能流泪的话,我来替你哭吧", "subtitle": ""}, {"description": "诶嘿嘿老子才是主人!\n————————————————\n视频/时轴:枫起\n封面:么羊\n————————————————", "pic": "http://i2.hdslb.com/bfs/archive/91543007ae3c94abbd7ede6adbe95b13189e6757.jpg", "title": "主播才不是你的电子宠物呢!", "subtitle": ""}, {"description": "写不出来简介了(躺)\n——————————————————\n视频:小M\n时轴:玙子\n封面:Ling伊\n——————————————————", "pic": "http://i2.hdslb.com/bfs/archive/0d017dd7007000cd64456b5b385629acef903690.jpg", "title": "看见这20万粉了吗?拿智商换的QAQ", "subtitle": ""}, {"description": "恭喜EDG拿下S11冠军!!!\n本来想立刻发出来的,后来想了想在夺冠后的第七天的星期七发也挺好的hhh\n想了想自己的黄铜账号(跑)\n——————————————————————————\n视频/时轴:还在为猛犸难过但是还要被迫来切片的小M\n封面:Ling伊\n——————————————————————————", "pic": "http://i1.hdslb.com/bfs/archive/ba4a76003e0326be75b10294e9ae786d8d64a7bb.jpg", "title": "虽然不能说脏话但是EDG NB!", "subtitle": ""}, {"description": "哼!一群大坏蛋!\n——————————————————\n视频:啾啾\n时轴:战月\n封面:惠惠\n——————————————————", "pic": "http://i2.hdslb.com/bfs/archive/450f659eb4b951a0f65b3f33adb7bf3cc38c1a00.jpg", "title": "我是因为傻才会说喜欢你的!才不是傲娇什么的!", "subtitle": ""}, {"description": "联动不专心 老婆两行泪(\n喜欢视频的话可以点个小小滴三连!\n--------------------------------\n\n雪狐桑的直播:https://live.bilibili.com/24393\nsayako的直播:https://live.bilibili.com/21749031", "pic": "http://i0.hdslb.com/bfs/archive/98478ceef12718e576d1ff8c08d6c381437f3a99.jpg", "title": "我竟然被联动对象当面NTR了!?", "subtitle": ""}] \ No newline at end of file -- Gitee From f503b57914767c33c548338a31e37058f12c207a Mon Sep 17 00:00:00 2001 From: EditorWang Date: Mon, 29 Nov 2021 12:02:35 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20.git?= =?UTF-8?q?igonre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitigonre | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .gitigonre diff --git a/.gitigonre b/.gitigonre deleted file mode 100644 index bf17db9..0000000 --- a/.gitigonre +++ /dev/null @@ -1,3 +0,0 @@ -*.log -*.json - -- Gitee From 26e2f49bbe43a5ed5723707fa9ff35ce17a1ad09 Mon Sep 17 00:00:00 2001 From: EditorWang Date: Mon, 29 Nov 2021 12:02:40 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20log.?= =?UTF-8?q?log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log.log | 329 -------------------------------------------------------- 1 file changed, 329 deletions(-) delete mode 100644 log.log diff --git a/log.log b/log.log deleted file mode 100644 index 8a5c971..0000000 --- a/log.log +++ /dev/null @@ -1,329 +0,0 @@ -2021-12-11/29/21 03:12:10 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-12-11/29/21 03:12:10 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-12-11/29/21 03:12:10 - [INFO] - Scheduler started-start -2021-12-11/29/21 03:12:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:12:20 PST)" (scheduled at 2021-11-29 03:12:20.186035-08:00)-run_job -2021-12-11/29/21 03:12:20 - [INFO] - Reqeust Fail-job -2021-12-11/29/21 03:12:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:12:30 PST)" executed successfully-run_job -2021-12-11/29/21 03:12:30 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:12:40 PST)" (scheduled at 2021-11-29 03:12:30.186035-08:00)-run_job -2021-12-11/29/21 03:12:30 - [INFO] - Reqeust Fail-job -2021-12-11/29/21 03:12:30 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:12:40 PST)" executed successfully-run_job -2021-14-11/29/21 03:14:31 - [WARNING] - Run time of job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:14:40 PST)" was missed by 0:00:01.793396-run_job -2021-14-11/29/21 03:14:40 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:14:50 PST)" (scheduled at 2021-11-29 03:14:40.186035-08:00)-run_job -2021-14-11/29/21 03:14:40 - [INFO] - Reqeust Fail-job -2021-14-11/29/21 03:14:40 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:14:50 PST)" executed successfully-run_job -2021-14-11/29/21 03:14:50 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:00 PST)" (scheduled at 2021-11-29 03:14:50.186035-08:00)-run_job -2021-14-11/29/21 03:14:50 - [INFO] - Reqeust Fail-job -2021-14-11/29/21 03:14:50 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:00 PST)" executed successfully-run_job -2021-15-11/29/21 03:15:00 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:10 PST)" (scheduled at 2021-11-29 03:15:00.186035-08:00)-run_job -2021-15-11/29/21 03:15:00 - [INFO] - Reqeust Fail-job -2021-15-11/29/21 03:15:00 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:10 PST)" executed successfully-run_job -2021-15-11/29/21 03:15:10 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:20 PST)" (scheduled at 2021-11-29 03:15:10.186035-08:00)-run_job -2021-15-11/29/21 03:15:10 - [INFO] - Reqeust Fail-job -2021-15-11/29/21 03:15:10 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:20 PST)" executed successfully-run_job -2021-15-11/29/21 03:15:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:30 PST)" (scheduled at 2021-11-29 03:15:20.186035-08:00)-run_job -2021-15-11/29/21 03:15:20 - [INFO] - Reqeust Fail-job -2021-15-11/29/21 03:15:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:30 PST)" executed successfully-run_job -2021-15-11/29/21 03:15:30 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:40 PST)" (scheduled at 2021-11-29 03:15:30.186035-08:00)-run_job -2021-15-11/29/21 03:15:30 - [INFO] - Reqeust Fail-job -2021-15-11/29/21 03:15:30 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:40 PST)" executed successfully-run_job -2021-15-11/29/21 03:15:40 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:50 PST)" (scheduled at 2021-11-29 03:15:40.186035-08:00)-run_job -2021-15-11/29/21 03:15:40 - [INFO] - Reqeust Fail-job -2021-15-11/29/21 03:15:40 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:15:50 PST)" executed successfully-run_job -2021-15-11/29/21 03:15:50 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:16:00 PST)" (scheduled at 2021-11-29 03:15:50.186035-08:00)-run_job -2021-15-11/29/21 03:15:50 - [INFO] - Reqeust Fail-job -2021-15-11/29/21 03:15:50 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:16:00 PST)" executed successfully-run_job -2021-16-11/29/21 03:16:23 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-16-11/29/21 03:16:23 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-16-11/29/21 03:16:23 - [INFO] - Scheduler started-start -2021-16-11/29/21 03:16:33 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:16:33 PST)" (scheduled at 2021-11-29 03:16:33.413013-08:00)-run_job -2021-16-11/29/21 03:16:33 - [INFO] - Reqeust Fail-job -2021-16-11/29/21 03:16:33 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:16:43 PST)" executed successfully-run_job -2021-16-11/29/21 03:16:43 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:16:53 PST)" (scheduled at 2021-11-29 03:16:43.413013-08:00)-run_job -2021-16-11/29/21 03:16:43 - [INFO] - Reqeust Fail-job -2021-16-11/29/21 03:16:43 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:16:53 PST)" executed successfully-run_job -2021-16-11/29/21 03:16:53 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:17:03 PST)" (scheduled at 2021-11-29 03:16:53.413013-08:00)-run_job -2021-16-11/29/21 03:16:53 - [INFO] - Reqeust Fail-job -2021-16-11/29/21 03:16:53 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:17:03 PST)" executed successfully-run_job -2021-21-11/29/21 03:21:01 - [WARNING] - Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11-load -Traceback (most recent call last): - File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open - h.request(req.get_method(), req.selector, req.data, headers, - File "/usr/lib/python3.8/http/client.py", line 1252, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1298, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1247, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1007, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 947, in send - self.connect() - File "/usr/lib/python3.8/http/client.py", line 1414, in connect - super().connect() - File "/usr/lib/python3.8/http/client.py", line 918, in connect - self.sock = self._create_connection( - File "/usr/lib/python3.8/socket.py", line 808, in create_connection - raise err - File "/usr/lib/python3.8/socket.py", line 796, in create_connection - sock.connect(sa) -OSError: [Errno 101] Network is unreachable - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/fake_useragent/utils.py", line 64, in get - with contextlib.closing(urlopen( - File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen - return opener.open(url, data, timeout) - File "/usr/lib/python3.8/urllib/request.py", line 525, in open - response = self._open(req, data) - File "/usr/lib/python3.8/urllib/request.py", line 542, in _open - result = self._call_chain(self.handle_open, protocol, protocol + - File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain - result = func(*args) - File "/usr/lib/python3.8/urllib/request.py", line 1397, in https_open - return self.do_open(http.client.HTTPSConnection, req, - File "/usr/lib/python3.8/urllib/request.py", line 1357, in do_open - raise URLError(err) -urllib.error.URLError: - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/fake_useragent/utils.py", line 154, in load - for item in get_browsers(verify_ssl=verify_ssl): - File "/usr/local/lib/python3.8/dist-packages/fake_useragent/utils.py", line 97, in get_browsers - html = get(settings.BROWSERS_STATS_PAGE, verify_ssl=verify_ssl) - File "/usr/local/lib/python3.8/dist-packages/fake_useragent/utils.py", line 84, in get - raise FakeUserAgentError('Maximum amount of retries reached') -fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached -2021-21-11/29/21 03:21:02 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-21-11/29/21 03:21:02 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-21-11/29/21 03:21:02 - [INFO] - Scheduler started-start -2021-21-11/29/21 03:21:12 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:12 PST)" (scheduled at 2021-11-29 03:21:12.395508-08:00)-run_job -2021-21-11/29/21 03:21:12 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:22 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 35, in job - print(ua.random()) -TypeError: 'str' object is not callable -2021-21-11/29/21 03:21:22 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:32 PST)" (scheduled at 2021-11-29 03:21:22.395508-08:00)-run_job -2021-21-11/29/21 03:21:22 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:32 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 35, in job - print(ua.random()) -TypeError: 'str' object is not callable -2021-21-11/29/21 03:21:32 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:42 PST)" (scheduled at 2021-11-29 03:21:32.395508-08:00)-run_job -2021-21-11/29/21 03:21:32 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:21:42 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 35, in job - print(ua.random()) -TypeError: 'str' object is not callable -2021-21-11/29/21 03:21:51 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-21-11/29/21 03:21:51 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-21-11/29/21 03:21:51 - [INFO] - Scheduler started-start -2021-22-11/29/21 03:22:01 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:01 PST)" (scheduled at 2021-11-29 03:22:01.165158-08:00)-run_job -2021-22-11/29/21 03:22:01 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:11 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 36, in job - response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792',headers={ - File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get - return request('get', url, params=params, **kwargs) - File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request - return session.request(method=method, url=url, **kwargs) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request - prep = self.prepare_request(req) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 458, in prepare_request - headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict), - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 69, in merge_setting - merged_setting.update(to_key_val_list(request_setting)) - File "/usr/lib/python3.8/_collections_abc.py", line 838, in update - self[key] = value - File "/usr/lib/python3/dist-packages/requests/structures.py", line 49, in __setitem__ - self._store[key.lower()] = (key, value) -AttributeError: type object 'FakeUserAgent' has no attribute 'lower' -2021-22-11/29/21 03:22:11 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:21 PST)" (scheduled at 2021-11-29 03:22:11.165158-08:00)-run_job -2021-22-11/29/21 03:22:11 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:21 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 36, in job - response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792',headers={ - File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get - return request('get', url, params=params, **kwargs) - File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request - return session.request(method=method, url=url, **kwargs) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request - prep = self.prepare_request(req) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 458, in prepare_request - headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict), - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 69, in merge_setting - merged_setting.update(to_key_val_list(request_setting)) - File "/usr/lib/python3.8/_collections_abc.py", line 838, in update - self[key] = value - File "/usr/lib/python3/dist-packages/requests/structures.py", line 49, in __setitem__ - self._store[key.lower()] = (key, value) -AttributeError: type object 'FakeUserAgent' has no attribute 'lower' -2021-22-11/29/21 03:22:21 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:31 PST)" (scheduled at 2021-11-29 03:22:21.165158-08:00)-run_job -2021-22-11/29/21 03:22:21 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:31 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 36, in job - response = requests.get(REQUEST_VDIEO_VDIEOLIST + '477792',headers={ - File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get - return request('get', url, params=params, **kwargs) - File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request - return session.request(method=method, url=url, **kwargs) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request - prep = self.prepare_request(req) - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 458, in prepare_request - headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict), - File "/usr/lib/python3/dist-packages/requests/sessions.py", line 69, in merge_setting - merged_setting.update(to_key_val_list(request_setting)) - File "/usr/lib/python3.8/_collections_abc.py", line 838, in update - self[key] = value - File "/usr/lib/python3/dist-packages/requests/structures.py", line 49, in __setitem__ - self._store[key.lower()] = (key, value) -AttributeError: type object 'FakeUserAgent' has no attribute 'lower' -2021-22-11/29/21 03:22:49 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-22-11/29/21 03:22:49 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-22-11/29/21 03:22:49 - [INFO] - Scheduler started-start -2021-22-11/29/21 03:22:59 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:22:59 PST)" (scheduled at 2021-11-29 03:22:59.126712-08:00)-run_job -2021-22-11/29/21 03:22:59 - [INFO] - Request Success-job -2021-22-11/29/21 03:22:59 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-22-11/29/21 03:22:59 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:09 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 60, in job - print("{0} save success".format(CONFIG['SAVE_LOCATION '])) -KeyError: 'SAVE_LOCATION ' -2021-23-11/29/21 03:23:09 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:19 PST)" (scheduled at 2021-11-29 03:23:09.126712-08:00)-run_job -2021-23-11/29/21 03:23:09 - [INFO] - Request Success-job -2021-23-11/29/21 03:23:09 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-23-11/29/21 03:23:09 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:19 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 60, in job - print("{0} save success".format(CONFIG['SAVE_LOCATION '])) -KeyError: 'SAVE_LOCATION ' -2021-23-11/29/21 03:23:19 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:29 PST)" (scheduled at 2021-11-29 03:23:19.126712-08:00)-run_job -2021-23-11/29/21 03:23:19 - [INFO] - Request Success-job -2021-23-11/29/21 03:23:19 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-23-11/29/21 03:23:19 - [ERROR] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:23:29 PST)" raised an exception-run_job -Traceback (most recent call last): - File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job - retval = job.func(*job.args, **job.kwargs) - File "app.py", line 60, in job - print("{0} save success".format(CONFIG['SAVE_LOCATION '])) -KeyError: 'SAVE_LOCATION ' -2021-23-11/29/21 03:23:50 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-23-11/29/21 03:23:50 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-23-11/29/21 03:23:50 - [INFO] - Scheduler started-start -2021-24-11/29/21 03:24:00 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:00 PST)" (scheduled at 2021-11-29 03:24:00.321719-08:00)-run_job -2021-24-11/29/21 03:24:00 - [INFO] - Request Success-job -2021-24-11/29/21 03:24:00 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-24-11/29/21 03:24:00 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:10 PST)" executed successfully-run_job -2021-24-11/29/21 03:24:10 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:20 PST)" (scheduled at 2021-11-29 03:24:10.321719-08:00)-run_job -2021-24-11/29/21 03:24:10 - [INFO] - Request Success-job -2021-24-11/29/21 03:24:10 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-24-11/29/21 03:24:10 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:20 PST)" executed successfully-run_job -2021-24-11/29/21 03:24:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:30 PST)" (scheduled at 2021-11-29 03:24:20.321719-08:00)-run_job -2021-24-11/29/21 03:24:20 - [INFO] - Request Success-job -2021-24-11/29/21 03:24:20 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-24-11/29/21 03:24:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:30 PST)" executed successfully-run_job -2021-24-11/29/21 03:24:30 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:40 PST)" (scheduled at 2021-11-29 03:24:30.321719-08:00)-run_job -2021-24-11/29/21 03:24:30 - [INFO] - Request Success-job -2021-24-11/29/21 03:24:30 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-24-11/29/21 03:24:30 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:40 PST)" executed successfully-run_job -2021-24-11/29/21 03:24:40 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:50 PST)" (scheduled at 2021-11-29 03:24:40.321719-08:00)-run_job -2021-24-11/29/21 03:24:40 - [INFO] - Request Success-job -2021-24-11/29/21 03:24:40 - [INFO] - /home/kaltsit/SnowFox_VideoMonitordatadata.json save success-job -2021-24-11/29/21 03:24:40 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:24:50 PST)" executed successfully-run_job -2021-25-11/29/21 03:25:50 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-25-11/29/21 03:25:50 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-25-11/29/21 03:25:50 - [INFO] - Scheduler started-start -2021-26-11/29/21 03:26:00 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:00 PST)" (scheduled at 2021-11-29 03:26:00.469377-08:00)-run_job -2021-26-11/29/21 03:26:00 - [INFO] - Request Success-job -2021-26-11/29/21 03:26:00 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job -2021-26-11/29/21 03:26:00 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:10 PST)" executed successfully-run_job -2021-26-11/29/21 03:26:10 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:20 PST)" (scheduled at 2021-11-29 03:26:10.469377-08:00)-run_job -2021-26-11/29/21 03:26:10 - [INFO] - Request Success-job -2021-26-11/29/21 03:26:10 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job -2021-26-11/29/21 03:26:10 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:20 PST)" executed successfully-run_job -2021-26-11/29/21 03:26:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:30 PST)" (scheduled at 2021-11-29 03:26:20.469377-08:00)-run_job -2021-26-11/29/21 03:26:20 - [INFO] - Request Success-job -2021-26-11/29/21 03:26:20 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job -2021-26-11/29/21 03:26:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:30 PST)" executed successfully-run_job -2021-26-11/29/21 03:26:30 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:40 PST)" (scheduled at 2021-11-29 03:26:30.469377-08:00)-run_job -2021-26-11/29/21 03:26:30 - [INFO] - Request Success-job -2021-26-11/29/21 03:26:30 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job -2021-26-11/29/21 03:26:30 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:40 PST)" executed successfully-run_job -2021-26-11/29/21 03:26:40 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:50 PST)" (scheduled at 2021-11-29 03:26:40.469377-08:00)-run_job -2021-26-11/29/21 03:26:40 - [INFO] - Request Success-job -2021-26-11/29/21 03:26:40 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor\data\data.json save success-job -2021-26-11/29/21 03:26:40 - [INFO] - Job "Monitor.job (trigger: interval[0:00:10], next run at: 2021-11-29 03:26:50 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:14 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-29-11/29/21 03:29:14 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-29-11/29/21 03:29:14 - [INFO] - Scheduler started-start -2021-29-11/29/21 03:29:15 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:15 PST)" (scheduled at 2021-11-29 03:29:15.869915-08:00)-run_job -2021-29-11/29/21 03:29:16 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:16 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:16 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:16 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:16 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:17 PST)" (scheduled at 2021-11-29 03:29:16.869915-08:00)-run_job -2021-29-11/29/21 03:29:17 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:17 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:17 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:17 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:17 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:18 PST)" (scheduled at 2021-11-29 03:29:17.869915-08:00)-run_job -2021-29-11/29/21 03:29:18 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:18 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:18 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:18 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:18 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:19 PST)" (scheduled at 2021-11-29 03:29:18.869915-08:00)-run_job -2021-29-11/29/21 03:29:19 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:19 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:19 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:19 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:19 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:20 PST)" (scheduled at 2021-11-29 03:29:19.869915-08:00)-run_job -2021-29-11/29/21 03:29:20 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:20 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:20 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:20 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:20 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:21 PST)" (scheduled at 2021-11-29 03:29:20.869915-08:00)-run_job -2021-29-11/29/21 03:29:21 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:21 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:21 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:21 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:21 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:22 PST)" (scheduled at 2021-11-29 03:29:21.869915-08:00)-run_job -2021-29-11/29/21 03:29:22 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:22 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:22 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:22 PST)" executed successfully-run_job -2021-29-11/29/21 03:29:22 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:23 PST)" (scheduled at 2021-11-29 03:29:22.869915-08:00)-run_job -2021-29-11/29/21 03:29:23 - [INFO] - Request Success-job -2021-29-11/29/21 03:29:23 - [INFO] - /home/kaltsit/SnowFox_VideoMonitor/data/data.json save success-job -2021-29-11/29/21 03:29:23 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:29:23 PST)" executed successfully-run_job -2021-45-11/29/21 03:45:06 - [INFO] - Adding job tentatively -- it will be properly scheduled when the scheduler starts-add_job -2021-45-11/29/21 03:45:06 - [INFO] - Added job "Monitor.job" to job store "default"-_real_add_job -2021-45-11/29/21 03:45:06 - [INFO] - Scheduler started-start -2021-45-11/29/21 03:45:07 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:07 PST)" (scheduled at 2021-11-29 03:45:07.865062-08:00)-run_job -2021-45-11/29/21 03:45:08 - [INFO] - Request Success-job -2021-45-11/29/21 03:45:08 - [INFO] - ./data/data.json save success-job -2021-45-11/29/21 03:45:08 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:08 PST)" executed successfully-run_job -2021-45-11/29/21 03:45:08 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:09 PST)" (scheduled at 2021-11-29 03:45:08.865062-08:00)-run_job -2021-45-11/29/21 03:45:09 - [INFO] - Request Success-job -2021-45-11/29/21 03:45:09 - [INFO] - ./data/data.json save success-job -2021-45-11/29/21 03:45:09 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:09 PST)" executed successfully-run_job -2021-45-11/29/21 03:45:09 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:10 PST)" (scheduled at 2021-11-29 03:45:09.865062-08:00)-run_job -2021-45-11/29/21 03:45:10 - [INFO] - Request Success-job -2021-45-11/29/21 03:45:10 - [INFO] - ./data/data.json save success-job -2021-45-11/29/21 03:45:10 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:10 PST)" executed successfully-run_job -2021-45-11/29/21 03:45:10 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:11 PST)" (scheduled at 2021-11-29 03:45:10.865062-08:00)-run_job -2021-45-11/29/21 03:45:11 - [INFO] - Request Success-job -2021-45-11/29/21 03:45:11 - [INFO] - ./data/data.json save success-job -2021-45-11/29/21 03:45:11 - [INFO] - Job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:11 PST)" executed successfully-run_job -2021-45-11/29/21 03:45:11 - [INFO] - Running job "Monitor.job (trigger: interval[0:00:01], next run at: 2021-11-29 03:45:12 PST)" (scheduled at 2021-11-29 03:45:11.865062-08:00)-run_job -- Gitee