GithubHelp home page GithubHelp logo

sk163 / auto-read-liunxdo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 14790897/auto-read-liunxdo

0.0 1.0 0.0 83 KB

自动刷 Linux do 的文章以及自动点赞

License: MIT License

JavaScript 96.61% Dockerfile 3.39%

auto-read-liunxdo's Introduction

使用方法一:油猴脚本

油猴脚本代码在 index_passage_list 中 油猴:https://greasyfork.org/en/scripts/489464-auto-read

使用方法二:puppeteer 无头运行

1.设置环境变量

.env 里面设置用户名 密码

2.运行

Windows

npm install
node .\pteer.js

Linux 额外安装以下包,运行命令相同

sudo apt-get update
sudo apt install nodejs npm  -y
sudo apt-get install -y wget unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

使用方法三:GitHub Action 每天 0 点阅读

(可自行修改启动时间和持续时间,代码.github\workflows\cron_read.yaml)

1. fork 仓库

2.设置环境变量

在 GitHub action 的 secrets 设置用户名密码(变量名参考.env 中给出的)(.env 里面设置用户名密码在这里无效)

3.启动 workflow

教程:https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web?tab=readme-ov-file#enable-automatic-updates

使用方法四:docker 运行

1.立刻执行

克隆仓库,在docker-compose.yml里面设置环境变量,然后运行

 docker-compose up -d

查看日志

docker-compose logs -f

2.定时运行(目前存在问题)

docker-compose -f cron-docker-compose.yml up -d

auto-read-liunxdo's People

Contributors

14790897 avatar sk163 avatar icpd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.