QL Script Hub
🚀 Personal QingLong script hub - one-stop solution for check-ins and monitoring
中文说明 | English

📋 Overview
QL Script Hub is a script collection built for QingLong Panel, providing automation for daily check-ins, monitoring, and similar repetitive tasks. The scripts are intended to be easy to deploy and maintain.
✨ Features
- 🎯 Diverse scripts - Covers check-ins, notifications, and other automation scenarios
- 🔧 Easy configuration - Unified environment-variable based setup
- 📦 Modular design - Clear file structure for maintenance and extension
- 🛡️ Reliable - Scripts are organized for practical day-to-day usage
- 📝 Documented - Includes setup notes and parameter descriptions
- 🔄 Continuously updated - Easy to expand with more services over time
📁 Project Structure
ql-script-hub/
├── README.md # Chinese README
├── README_EN.md # English README
├── LICENSE # License
├── aliyunpan_checkin.py # Aliyun Drive check-in
├── baiduwangpan_checkin.py # Baidu Netdisk check-in
├── deepflood_checkin.py # Deepflood check-in
├── enshan_checkin.py # Enshan forum check-in
├── ikuuu_checkin.py # Ikuuu check-in
├── nga_checkin.py # NGA forum check-in
├── nodeseek_checkin.py # NodeSeek check-in
├── quark_signin.py # Quark Drive sign-in
├── CDRail.py # Chengdu Metro sign-in
├── SFSU_checkin.py # SF Express sign-in
├── SMZDM_checkin.py # SMZDM sign-in
├── tieba_checkin.py # Baidu Tieba sign-in
├── ty_netdisk_checkin.py # Tianyi Cloud Drive sign-in
└── archive/
└── leaflow_checkin.pyleaflow_checkin.py
🚀 Quick Start
Requirements
- QingLong Panel 2.10+
- Node.js 14+
Installation
Pull the repository
# Add this repository in QingLong subscription management
# Subscription URL: https://github.com/agluo/ql-script-hub.git
Configure environment variables
| Variable |
Description |
Required |
Example |
Notes |
TG_BOT_TOKEN |
Telegram bot token |
Recommended |
1234567890:AAG9rt-6RDaaX0HBLZQq0laNOh898iFYaRQ |
See instructions below |
TG_USER_ID |
Telegram user ID |
Recommended |
1434078534 |
See instructions below |
PUSH_KEY |
ServerChan push key |
Optional |
SCTxxxxxxxxxxxxxxxxxxxxx |
For WeChat push via sct.ftqq.com |
PUSH_PLUS_TOKEN |
Push+ token |
Optional |
xxxxxxxxxxxxxxxxxx |
For WeChat push via pushplus.plus |
DD_BOT_TOKEN |
DingTalk bot token |
Optional |
xxxxxxxxxxxxxxxxxx |
DingTalk group bot |
DD_BOT_SECRET |
DingTalk bot secret |
Optional |
xxxxxxxxxxxxxxxxxx |
Optional bot signing secret |
BARK_PUSH |
Bark push URL |
Optional |
https://api.day.app/your_key/ |
Bark push for iOS |
🏔️ Enshan Forum
| Variable |
Description |
Required |
Example |
Notes |
enshan_cookie |
Enshan forum cookie |
Required |
full cookie string |
Single-account cookie |
📱 NodeSeek
| Variable |
Description |
Required |
Example |
Notes |
NODESEEK_COOKIE |
NodeSeek cookie |
Required |
cookie1\ncookie2\ncookie3 |
Separate multiple accounts with new lines |
NS_RANDOM |
Random sign-in parameter |
Optional |
true |
Usually no need to change |
☁️ Quark Drive
| Variable |
Description |
Required |
Example |
Notes |
QUARK_COOKIE |
Quark Drive cookie |
Required |
cookie1\ncookie2 |
Separate multiple accounts with new lines |
🚇 Chengdu Metro
| Variable |
Description |
Required |
Example |
Notes |
CDRAIL_DATA |
Chengdu Metro request data extracted from captured headers |
Required |
{"token":"xxx","app-token":"yyy","Cookie":"zzz"} |
Supports JSON; separate multiple accounts with new lines |
CDRAIL_DATA should include the following fields, preferably copied directly from the captured request headers:
| Field |
Required |
Description |
token |
Required |
The token value from request headers |
app-token |
Required |
The app-token value from request headers |
Cookie / cookie |
Required |
Logged-in cookie; the script handles case differences automatically |
deviceId / device-id |
Recommended |
Device identifier; the repository default is only a placeholder, so using your own captured device ID is recommended |
Example formats:
# Single account in JSON format (recommended)
export CDRAIL_DATA='{"token":"xxx","app-token":"yyy","Cookie":"zzz","deviceId":"xxx-xxx"}'
# Single account in querystring format
export CDRAIL_DATA='token=xxx&app-token=yyy&cookie=zzz&deviceId=xxx-xxx'
# Multiple accounts: separated by new lines or `@`
export CDRAIL_DATA='{"token":"t1","app-token":"a1","Cookie":"c1","deviceId":"d1"}
{"token":"t2","app-token":"a2","Cookie":"c2","deviceId":"d2"}'
📦 SF Express
| Variable |
Description |
Required |
Example |
Notes |
sfsyUrl |
SF Express login URL |
Required |
https://mcs-mimp... |
Capture from network traffic, one per line for multiple accounts |
Baidu Tieba
| Variable |
Description |
Required |
Example |
Notes |
TIEBA_COOKIE |
Baidu Tieba cookie |
Required |
BDUSS=xxxxxx; STOKEN=xxxxx... |
Full cookie string, one account per line |
☁️ Aliyun Drive
| Variable |
Description |
Required |
Example |
Notes |
ALIYUN_REFRESH_TOKEN |
Aliyun Drive refresh_token |
Required |
crsh166bdfde4751a4c0... |
Separate multiple accounts with new lines |
AUTO_UPDATE_TOKEN |
Auto update token |
Optional |
true |
Default is true |
PRIVACY_MODE |
Privacy mode |
Optional |
true |
Default is true, masks sensitive values |
🛒 SMZDM
| Variable |
Description |
Required |
Example |
Notes |
SMZDM_COOKIE |
SMZDM cookie |
Required |
__ckguid==xxxxx; device_id=xxxxx... |
Full cookie string, one account per line |
☁️ Baidu Netdisk
| Variable |
Description |
Example |
BAIDU_COOKIE |
Website cookie |
BDUSS=xxx; STOKEN=xxx... |
PRIVACY_MODE |
Privacy mode |
true |
📡 Ikuuu
| Variable |
Description |
Example |
IKUUU_EMAIL |
Login email |
[email protected] |
IKUUU_PASSWD |
Login password |
password123 |
☁️ Tianyi Cloud Drive
| Variable |
Description |
Example |
TY_USERNAME |
Login phone number |
13812345678 |
TY_PASSWORD |
Login password |
password1 |
🎮 NGA Forum
| Variable |
Description |
Example |
NGA_CREDENTIALS |
UID and AccessToken |
12345678,abcdef... |
📱 Deepflood
| Variable |
Description |
Required |
Example |
Notes |
DEEPFLOOD_COOKIE |
Deepflood website cookie |
Required |
cookie1\ncookie2\ncookie3 |
Separate multiple accounts with new lines |
NS_RANDOM |
Random sign-in parameter |
Optional |
true |
Usually no need to change |
☁️ Leaflow
| Variable |
Description |
Required |
Example |
Notes |
LEAFLOW_COOKIE |
Leaflow website cookie |
Required |
cookie |
Separate multiple accounts with new lines |
⏰ Randomization Settings (shared by all scripts)
| Variable |
Description |
Required |
Example |
Notes |
RANDOM_SIGNIN |
Enable random sign-in |
Optional |
true |
true to enable, false to disable |
MAX_RANDOM_DELAY |
Random delay window in seconds |
Optional |
3600 |
3600 = 1 hour, 1800 = 30 minutes |
🔧 How to Obtain Required Values
📱 Telegram Setup
- Create a bot: Chat with @BotFather and send
/newbot
- Get the token: After creation, BotFather returns your
TG_BOT_TOKEN
- Get user ID: Chat with @userinfobot to get
TG_USER_ID
🍪 Cookie / Credential Collection
Enshan forum cookie
- Visit Enshan Forum and sign in
- Open developer tools with
F12 → Network → refresh the page
- Copy the full
Cookie value from request headers
NodeSeek cookie
- Visit nodeseek.com and sign in
- Open developer tools with
F12 → Network → refresh the page
- Copy the full
Cookie value from request headers
Deepflood cookie
- Visit deepflood.com and sign in
- Open developer tools with
F12 → Network → refresh the page
- Copy the full
Cookie value from request headers
Quark Drive cookie
- Visit Quark Drive and sign in
- Open developer tools with
F12 → Network → refresh the page
- Copy the full
Cookie value from request headers
SF Express sfsyUrl
- Bind WeChat in the SF Express app, then send "顺丰" to the bot
- Open the mini program or app → My → Points, and capture one of these URLs:
https://mcs-mimp-web.sf-express.com/mcs-mimp/share/weChat/shareGiftReceiveRedirect
https://mcs-mimp-web.sf-express.com/mcs-mimp/share/app/shareRedirect
- Encode the captured URL using a tool such as URL Encoder
Baidu Tieba cookie
- Visit tieba.baidu.com and sign in
- Open developer tools with
F12 → Network → refresh the page
- Copy the full
Cookie value from request headers
- Make sure the cookie contains
BDUSS
Aliyun Drive refresh_token
- Visit Aliyun Drive Web and sign in
- Press
F12 → open the Application tab
- Find
Local Storage → https://www.aliyundrive.com
- Locate
token and copy the refresh_token value
SMZDM cookie
- Visit SMZDM and sign in
- Press
F12 → open the Network tab
- Refresh the page and open any request's
Request Headers
- Copy the full
Cookie value
Baidu Netdisk cookie
- Visit Baidu Netdisk and sign in
- Press
F12 → Network → copy the cookie
Ikuuu configuration
- Add
IKUUU_EMAIL in QingLong Panel
- Add
IKUUU_PASSWD in QingLong Panel
- Separate multiple accounts with commas, e.g.
email1,email2
- Keep password order aligned with email order
Tianyi Cloud Drive configuration
- Visit Tianyi Cloud Drive and disable device lock
- Add
TY_USERNAME in QingLong Panel
- Add
TY_PASSWD in QingLong Panel
Leaflow configuration
- Visit leaflow and disable device lock
- Click the trial sign-in entry
- Open developer tools with
F12 and go to the network panel
- Click sign in
- Inspect the newly generated request
- Find the cookie value containing
PHPSESSID=XXXXX
NGA forum configuration
- Install a packet capture tool with HTTPS decryption enabled and trust its certificate. Android: HTTP Canary, HttpToolkit, mitmproxy, Charles; iOS: Stream, Charles
- Route the phone network through the capture tool (or use its local VPN / proxy mode)
- Open the official NGA app, make sure you are signed in, then perform any action to trigger a request
- Find the POST request sent to
https://ngabbs.com/nuke.php
- Open the request body (
Content-Type is usually application/x-www-form-urlencoded) and copy: access_uid=yourUID and access_token=long_string
- Combine them as
UID,AccessToken and store them in NGA_CREDENTIALS
- Single account:
123456,abcdefg
- Multiple accounts:
123456,abcdefg&234567,hijklmn
📝 Configuration Example
# Notifications (Telegram recommended)
TG_BOT_TOKEN=1234567890:AAG9rt-6RDaaX0HBLZQq0laNOh898iFYaRQ
TG_USER_ID=1434078534
# Randomization settings (optional)
RANDOM_SIGNIN=true
MAX_RANDOM_DELAY=3600
🤝 Contributing
Contributions and suggestions are welcome.
- Fork this repository
- Create your feature branch (
git checkout -b feature/AmazingFeature)
- Commit your changes (
git commit -m 'Add some AmazingFeature')
- Push to the branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
📄 Disclaimer
- This project is for learning and personal communication only
- The author is not responsible for any issues caused by using this project
- Please comply with the target websites' terms of service and local laws
📞 Contact
📄 License
This project is licensed under the MIT License.
⭐ Star History
If this project helps you, a star is appreciated ⭐️