Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lonzzi/juejin-auto-checkin
掘金自动签到脚本
https://github.com/lonzzi/juejin-auto-checkin
bun checkin cronjob puppeteer
Last synced: 4 months ago
JSON representation
掘金自动签到脚本
- Host: GitHub
- URL: https://github.com/lonzzi/juejin-auto-checkin
- Owner: lonzzi
- License: mit
- Created: 2024-08-10T15:02:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T09:43:03.000Z (5 months ago)
- Last Synced: 2024-09-30T15:15:14.505Z (4 months ago)
- Topics: bun, checkin, cronjob, puppeteer
- Language: TypeScript
- Homepage:
- Size: 104 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# juejin-auto-checkin
![juejin-auto-checkin](https://socialify.git.ci/lonzzi/juejin-auto-checkin/image?font=Inter&language=1&logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F16703019&name=1&owner=1&pattern=Plus&stargazers=1&theme=Auto)
## Features
- Simulate clicks using Puppeteer.
- Send notifications using PushPlus.
- Use bun runtime to run TypeScript.## Usage
### Docker
Use with docker compose:
```shell
mkdir juejin-auto-checkin
cd juejin-auto-checkin
wget https://raw.githubusercontent.com/lonzzi/juejin-auto-checkin/main/docker-compose.ymldocker compose up -d
```Wait for the container to start, and then check the logs:
```shell
docker compose logs
```### Maunal
To run this project, you need to have [bun](https://bun.sh/) installed.
To install dependencies:
```bash
bun install
```To run:
```bash
bun run index.ts
```## Configuration
### Environment Variables
- `PUSH_PLUS_TOKEN`: Token of pushplus (optional)
- `CRON`: Cron expression, [Cron Syntax](https://github.com/kelektiv/node-cron?tab=readme-ov-file#cron-patterns) (optional, default: `0 0 8 * * *`)## License
[MIT](./LICENSE)