Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jacobhsu/node-puppeteer

GoogleChrome/puppeteer 實現JS版的網頁爬蟲
https://github.com/jacobhsu/node-puppeteer

nodejs

Last synced: about 1 month ago
JSON representation

GoogleChrome/puppeteer 實現JS版的網頁爬蟲

Awesome Lists containing this project

README

        

# node-puppeteer

[Puppeteer](https://developers.google.com/web/tools/puppeteer/?hl=zh-tw)
[Getting Started](https://developers.google.com/web/tools/puppeteer/get-started?hl=zh-tw#top_of_page)

`npm init`
`npm i puppeteer --save`

[Pressing Enter button in puppeteer](https://stackoverflow.com/questions/46442253/pressing-enter-button-in-puppeteer)
[Keyboard Event Viewer](http://w3c.github.io/uievents/tools/key-event-viewer)
`await page.keyboard.press('Enter');`

## Examples

checkly/[puppeteer-examples](https://github.com/checkly/puppeteer-examples)

## Usage

`$ node ptt` 透過 Puppeteer 實現JS版的PTT網頁爬蟲
`$ node index` 將運彩場中投注預告時間表輸出成google日曆可匯入的csv

# References

GoogleChrome/[puppeteer](https://github.com/GoogleChrome/puppeteer)
[ptt-parser](https://www.npmjs.com/package/ptt-parser) [docs](https://medium.com/@realdennis/crawler-%E4%BD%BF%E7%94%A8puppeteer%E7%88%AC%E5%8F%96ptt%E7%9A%84%E7%B6%B2%E9%A0%81-1684568f6cb4)

# Tools

Chrome Extension [Puppeteer Recorder](https://chrome.google.com/webstore/detail/puppeteer-recorder/djeegiggegleadkkbgopoonhjimgehda/related)
[Visual Studio Code](https://code.visualstudio.com/) - Code Editing. Redefined
[Brackets](http://brackets.io/) - A modern, open source code editor