Skip to content
🤖基于 Puppeteer 所构建的简易机器人,以帮助自动化完成些精确性事务。
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src 🚑 add exception capture processing Jun 28, 2019
.gitignore 🎉 Initial commit Jun 3, 2019
LICENSE 🔧 Create License Jun 3, 2019
README.md
package.json
yarn.lock 🚀 add pm2 dependency to deploy Jul 2, 2019

README.md

Puppeteer Robot

🤖A simple robot built with Puppeteer to to help automate some precise things.

English | 中文

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 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 website, and sign in.

Prerequisites

Puppeteer requires at least Node.js v6.4.0, but the examples below use async/await which is only supported in Node v7.6.0 or greater.

Installation

# 🎉 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) 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 (🍀️).

yarn start

Useful links

Related Links

License

MIT

Copyright (c) 2018-present, nicejade.

You can’t perform that action at this time.