{{ message }}
[pull] main from smallfawn:main#248
Open
pull[bot] wants to merge 194 commits into
Open
Conversation
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
Workflow: tighten .github/workflows/checkScriptStatus.yml to require README anchor tags (exit with error if missing) instead of blindly appending; set start/end tag placeholders, filter out old table headers, prepend a standardized table header, collect updated names and append new scripts, and reassemble the file to avoid corrupting README format. Script: move changhongmeiling.py into daily/, update file comments and User-Agent, remove an unintended miniapp GET/request block, and apply minor formatting fixes.
Enhance the checkScriptStatus workflow to add defensive checks and clearer logs: detect when no JS/PY files changed or no Env tags found, verify README.md exists, and print explanatory messages (in Chinese). Tighten anchor validation with explicit error output to avoid corrupting README. Refactor table parsing to skip headers/separators, preserve/update rows, and reassemble the table with a fixed header. Overall prevents silent failures and makes failures easier to diagnose.
Update .github/workflows/checkScriptStatus.yml: improve user-facing messages and comments, simplify README table assembly (use a fixed header + new rows) and tighten anchor-missing handling, and ensure update_readme.py is executed before the commit/push step. Also small formatting and flow fixes to make the workflow clearer and more robust.
Update the GitHub Actions script that updates README script status: convert Chinese log messages to English, streamline README table assembly (introduce final_table, preserve headers, append new entries), adjust anchor tag handling comments, and simplify commit message output. Also remove the top-level README title and add a trailing blank line to the table in README.md. Rename a misencoded script filename to daily/yingsheng.js.
Enhance .github workflow to robustly detect changed .js/.py files (uses git diff HEAD~1..HEAD with fallback), extract Env names, require anchor markers in README, and parse/update the markdown table safely; add clearer Chinese logs and adjust commit/push step messaging. Insert anchor comments into README.md to mark the table region. Remove legacy chery.js and cheryev.js files and add a new daily/chery.js implementation (refactored script using axios/CryptoJS and modular Env tool).
优化整体流程代码
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )