Commit Graph

14 Commits

Author SHA1 Message Date
smallfawn
8b2a3b37d2 Move scripts and refactor bjxd.py with AI support
Rename/move scripts (baitianGame.js -> backup/, chinaUnicom.py & bjxd.py -> daily/) and tidy README formatting. Major refactor of bjxd.py: add generic AI support (AI_API_KEY, AI_REQUEST_URL, AI_MODEL, AI_REQUEST_PARAMS) while keeping backward compatibility for HUNYUAN/GLM keys, load .env when available, improve HTTP requests (timeout, headers), use defensive .get() access for JSON fields, enhanced logging and error handling, add article browse exception handling and task flow/delay improvements, and minor behavior tweaks (device header, push notification on no users). Also add new Env declarations for scripts.
2026-04-02 10:22:19 +08:00
smallfawn
c9641a7f9f Move babycare, update workflow & fix scripts
Move babycare.js into daily/ (added daily/babycare.js and removed top-level babycare.js). Improve .github workflow (checkScriptStatus.yml) to smarterly update README table using anchors, handle JS/PY file changes, and append when anchors missing. Update README.md table entries (added three scripts and cleaned duplicates). Tweak daily scripts: remove hardcoded process.env test assignments in daily/hdl.js and two other scripts, and fix string splitter usage in the non-ASCII-named script. General cleanup and formatting fixes.
2026-04-02 09:38:29 +08:00
github-actions[bot]
dcfaf88077 docs: 自动更新脚本状态 [skip ci] 2026-04-02 01:08:44 +00:00
smallfawn
798d6bb6bf Move scripts to daily/, remove alyp.js
Delete alyp.js (Aliyun Drive sign-in script) and reorganize two scripts into the daily/ folder. Rename aima.js -> daily/aima.js and refactor it to use the shared Env module (../tools/env), adjust axios import, remove QuanX compatibility code, and keep the updated activity ID and minor formatting fixes. Rename ksjsb.js -> daily/ksjsb.js with a small header/comment change and whitespace cleanup.
2026-04-02 09:08:28 +08:00
smallfawn
bc5a9ce2e4 Merge branch 'main' of https://github.com/smallfawn/QLScriptPublic 2026-04-02 09:01:31 +08:00
smallfawn
f317abf5a2 Update README: scripts, ql command, disclaimer
Reformat README: replace the old table with a titled script list that includes last-updated timestamps for each script. Simplify the QingLong repo pull command to use the GitHub URL (removed the ghproxy variant) and add a disclaimer clarifying the scripts are for learning/testing only and not for commercial use. General cleanup of headings and formatting.
2026-04-02 09:01:11 +08:00
github-actions[bot]
cdc5f60f8b docs: 自动更新脚本状态 [skip ci] 2026-04-02 00:56:24 +00:00
smallfawn
00a34616bd Replace aliyunpan.py with new daily/aliyunpan.py
Remove the old root aliyunpan.py and add a rewritten daily/aliyunpan.py. The new script is a Python3, self-contained signer that supports multiple accounts via the ALIYUN_ACCOUNTS env var (format: refresh_token#name, separated by & or newlines). It adds robust token refresh, sign-in, reward claiming, drive capacity query, logging, simple notify integration, error handling, and randomized delays between accounts for scheduled runs (cron hint included). Uses Bearer auth and updates stored refresh_token from responses.
2026-04-02 08:56:10 +08:00
smallfawn
fec492b2ab Improve README updater to support .py files
Enhance the GitHub Actions workflow that updates the README table: add .py to watched paths, broaden changed-file detection, and support both .js and .py targets. Make the Env name regex more flexible (matches Env(...)), add robust error handling for git diff, check README.md exists, and simplify table parsing/append logic so new scripts are added and existing rows updated correctly. Also tidy comments/spacing and adjust the automated commit message.
2026-04-02 08:22:51 +08:00
smallfawn
54ed4799db Add daily/shyp.py for SHYP tasks
Add a new script daily/shyp.py to automate Shanghai YP media points tasks. The script provides ShypAPI and ShypRunner classes to perform reading, video watching, favoriting, commenting and sharing tasks via the app API, includes logging, randomized delays, and simple error handling. Usage is driven by the SHYP_ACCOUNTS environment variable (format: token#device_id#name; multiple accounts separated by & or newline). Note: the script requires the requests library and includes a cron example in the header.
2026-04-01 21:25:23 +08:00
smallfawn
6965ba3226 Trigger workflow on Python file changes
Add '**/*.py' to the workflow's paths so the checkScriptStatus.yml job will run when Python files are created or modified. Previously the workflow only triggered on JavaScript file changes.
2026-04-01 21:07:08 +08:00
smallfawn
c9f6a965d0 Move scripts to daily and add erke sign-in
Rename 360.py and 51dalili.py into the daily/ folder and add a one-line Env comment to daily/51dalili.py. Add a new daily/erke.py implementing Hongxing Erke sign-in: environment-driven ERKE_CONF support, signature calculation, ErkeAPI class with get_integral and sign_in methods, logging, multi-account handling, and a summary output. Remove an old QingLong-specific Erke script file (non-ASCII filename).
2026-04-01 20:37:39 +08:00
smallfawn
77851275ab Remove kfh/kfw scripts and exchange modules
Delete four scripts related to the kfh and kfw integrations: kfh/kfh.js, kfh/kfh_exchange.js, kfw/kfw.js, and kfw/kfw_exchange.js. These files implemented daily sign-in, sharing/help features, and E-card exchange logic (including an Env helper and HTTP request wrappers). This commit removes those legacy scripts and their associated helper code.
2026-04-01 19:38:45 +08:00
smallfawn
8ba25646bd Initial commit 2026-04-01 19:27:33 +08:00