waynechang65 / bot-api Goto Github PK
View Code? Open in Web Editor NEWAPI Server
License: MIT License
API Server
License: MIT License
目前是隨著Request進來後,檢查是否已初始化。若還沒初始化,即進行初始化。
不過,如果2個以上request進來,這時還沒初始化,就會演變成,2個都在初始化,看後初始化就win。理應系統執行之初就初始化一次,把Browser生成。接著後面再依request來生成各自page進行處理,處理完後再關掉該page。如果有任何exception發生,再重新初始化Browser才對。
目前puppeteer的page只開一頁,所有request都在同一個page作事。當一個request進來後,立馬再接一個新的request時,舊的request會被打斷直接處理新的。
原因是:Page目前只開一頁
解法:理應動態隨著request進來啟動新的page做完後關閉。若一次10個request進來,就開10個pages同時處理,做完各自關掉,彼此不受干擾。
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.