Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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版的網頁爬蟲
- Host: GitHub
- URL: https://github.com/jacobhsu/node-puppeteer
- Owner: JacobHsu
- Created: 2019-01-21T08:12:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-04T22:40:44.000Z (over 3 years ago)
- Last Synced: 2024-04-10T16:05:25.232Z (9 months ago)
- Topics: nodejs
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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