dan3612812 / btsnotify Goto Github PK
View Code? Open in Web Editor NEW主動推播apple BTS是否開始,使用爬蟲的方式所以不太準確相關判斷依據參考README.md
License: MIT License
主動推播apple BTS是否開始,使用爬蟲的方式所以不太準確相關判斷依據參考README.md
License: MIT License
根據當時的情況
發出http code 503為https://apple.com/tw/shop/goto/educationrouting
頁面的顯示為
可以看到log在06:00:30 已經無抱錯(上述網址已正常導向不返回503)
產生太多request(其中response的判斷是異步執行),但印出時間為同步所以導致log輸出的情況
以下是該時間點左右的log
2021/07/16 06:00:20.443
(node:56484) UnhandledPromiseRejectionWarning: Error: Request failed with status code 503
at createError (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\adapters\http.js:260:11)
at IncomingMessage.emit (events.js:387:35)
at endReadableNT (internal/streams/readable.js:1317:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
(node:56484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5757)
2021/07/16 06:00:25.444
(node:56484) UnhandledPromiseRejectionWarning: Error: Request failed with status code 503
at createError (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Projects\VSCode\BTSNotify\node_modules\axios\lib\adapters\http.js:260:11)
at IncomingMessage.emit (events.js:387:35)
at endReadableNT (internal/streams/readable.js:1317:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
(node:56484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5759)
2021/07/16 06:00:30.444
2021/07/16 06:00:35.446
2021/07/16 06:00:40.448
2021/07/16 06:00:45.459
2021/07/16 06:00:50.473
2021/07/16 06:00:55.476
2021/07/16 06:01:00.485
2021/07/16 06:01:05.492
透過抓取https://apple.com/tw-edu/shop
是否進入更新,並透過telegram提前告知
相關資料參考連結
新增測試程式,讓程式不會每次都爆開QQ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.