Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicejade/puppeteer-robot
🤖基于 Puppeteer 所构建的简易机器人,以帮助自动化完成些精确性事务。
https://github.com/nicejade/puppeteer-robot
nodejs puppeteer puppeteer-core robot
Last synced: 2 months ago
JSON representation
🤖基于 Puppeteer 所构建的简易机器人,以帮助自动化完成些精确性事务。
- Host: GitHub
- URL: https://github.com/nicejade/puppeteer-robot
- Owner: nicejade
- License: mit
- Created: 2019-06-02T12:41:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T00:47:50.000Z (about 2 years ago)
- Last Synced: 2024-04-14T11:01:38.689Z (9 months ago)
- Topics: nodejs, puppeteer, puppeteer-core, robot
- Language: JavaScript
- Homepage: https://www.jeffjade.com/
- Size: 276 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Puppeteer Robot
🤖A simple robot built with Puppeteer to to help automate some precise things.
### English | [中文](https://www.jeffjade.com/2019/06/14/156-puppeteer-robot/)
## Goal and Philosophy
In this intelligence era of digital information, even individuals, it is necessary to use a variety of tools to create their own automated robots to help complete some precise things, so that you can save more time to learn or do more meaningful; based on the newly acquired skills, in turn, improve and perfect the automation process; thus, form a virtuous circle, persist in reciprocation, so that gain more competitiveness in this great battle, in order to achieve the life you want. The establishment of [this repository](https://github.com/nicejade/puppeteer-robot) is an initial attempt to achieve this goal.
Up to now, it can do the following things:
- Specify the time every day, automatically login to [hacpai.com](https://hacpai.com/register?r=jeffjade) website, and sign in.
## Prerequisites
`Puppeteer` requires at least [Node.js](https://nodejs.org/en/) v6.4.0, but the examples below use async/await which is only supported in Node v7.6.0 or greater.
## Installation
```bash
# 🎉 clone the project
git clone https://github.com/nicejade/puppeteer-robot.git your-project-name
cd your-project-name# ➕ install dependencies & start dev
yarn# 🚀 Background deployment
yarn deploy
```In addition, you need to download `Chromium` separately (Chinese users can download it on demand according to the system in [Taobao Mirrors](https://npm.taobao.org/mirrors/chromium-browser-snapshots/)) and put it in the root directory of the project; of course, you can also modify the code to specify other locations where it is located.
## Usage
>In the `src/config` directory, you need create a `secret.js` in accordance with the format of `secretSample.js` and modify the configuration (🍀️).
```bash
yarn start
```## Useful links
- [Headless Chrome Node API](https://pptr.dev/)
- [Awesome Puppeteer Curated List](https://github.com/transitive-bullshit/awesome-puppeteer)
- [大前端神器安利之 Puppeteer](https://www.jeffjade.com/2017/12/17/134-kinds-of-toss-using-puppeteer/)## Related Links
- [**倾城之链**](https://nicelinks.site?utm_source=github.com)
- [About Me](https://about.me/nicejade?utm_source=github.com)
- [晚晴幽草轩](https://jeffjade.com/nicelinks?utm_source=github.com)
- [静轩之别苑](https://quickapp.lovejade.cn/?utm_source=github.com)
- [静晴轩别苑](https://nice.lovejade.cn/?utm_source=github.com)
- [天意人间舫](https://blog.lovejade.cn/?utm_source=github.com)
- [新浪微博](https://weibo.com/jeffjade?utm_source=github.com)
- [知乎主页](https://www.zhihu.com/people/yang-qiong-pu/)
- [简书主页](https://www.jianshu.com/u/9aae3d8f4c3d)
- [SegmentFault](https://segmentfault.com/u/jeffjade)
- [Twitter](https://twitter.com/nicejadeyang)
- [Facebook](https://www.facebook.com/nice.jade.yang)## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2018-present, [nicejade](https://aboutme.lovejade.cn/?utm_source=github.com).