Giter Site home page Giter Site logo

bot-api's Introduction

🙋 :octocat: :octocat:
I am Wayne, a director, a senior manager, an amateur software developer, a hacker, … and a curious person. In my spare time, I enjoy reading, playing games, watching japanese animation, programming, learning japanese language and try new things. github stats

2718281828459045235360287471

github stats

3141592653589793

POKE-DC Counts

TOSMM Counts Groups

bot-api's People

Contributors

dependabot[bot] avatar waynechang65 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

bot-api's Issues

初始化改進

目前是隨著Request進來後,檢查是否已初始化。若還沒初始化,即進行初始化。
不過,如果2個以上request進來,這時還沒初始化,就會演變成,2個都在初始化,看後初始化就win。理應系統執行之初就初始化一次,把Browser生成。接著後面再依request來生成各自page進行處理,處理完後再關掉該page。如果有任何exception發生,再重新初始化Browser才對。

PMC scrawler href error

抓資料時,有些時候網站href會自動加上Domain,所以造成重覆網址引發錯誤。
應該要判斷一下,抓到的資料是否自帶Domain,有自帶就不用加了。

截圖 2021-10-06 10 22 41

不同的Request同時進來會造成抓資料錯誤

目前puppeteer的page只開一頁,所有request都在同一個page作事。當一個request進來後,立馬再接一個新的request時,舊的request會被打斷直接處理新的。
原因是:Page目前只開一頁
解法:理應動態隨著request進來啟動新的page做完後關閉。若一次10個request進來,就開10個pages同時處理,做完各自關掉,彼此不受干擾。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.