QD: an HTTP scheduler whose sample compose file ships placeholder secrets
QD [v20240210]: a framework for automatically executing scheduled HTTP request tasks, based on HAR Editor and Tornado Server.
At a glance
- What is it?
- A Python framework that records HTTP traffic as HAR in the browser and replays it on a schedule through Tornado. The interesting parts are in the build and the config: the Dockerfile builds on a pinned a76yyyy/pycurl:1.5.0 base image, and the sample compose file ships its cookie secret and AES key set to the same placeholder word.
- Who is it for?
- QD is a reasonable way to turn a browser session into a repeating job, and the pinning is disciplined enough to read: every dependency carries either a lower bound or an exact pin, and the interesting knobs are visible even though they sit commented out. One thing has to be settled before running it anywhere that matters.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 15 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- qd-today/qd5,600 ★ · +18
| Repository | 2026-09-23 | 2026-11-22 |
|---|---|---|
| qd-today/qd | 5.6k | 5.6k |
18 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The front page of the repository contains no operating instructions
The readme is almost entirely badges and a contributors table. What it actually states is four things: point at the usage guide hosted at qd-today.github.io/qd/zh_CN for how to operate the thing, point at CHANGELOG.md for the history, note the MIT license, and say that maintenance energy is limited so only Chrome is guaranteed, with a pull request invited from anyone who has tested another browser.
That last sentence is the one that shapes everything else. The framework's unit of work is a request captured from a browser, so a browser support statement is not a rendering detail, it defines what can be recorded in the first place. Nothing in the repository itself explains the request format, the schedule format, or the worker model; that contract lives on a separate documentation site, and CHANGELOG.md is the only other place a change is described. The repository description string also still carries the version tag v20240210 while the newest release is 20250803 from 2025-08-03.
The image clones the source tree during the build, over SSH, with a key from the tree
The build does not copy a snapshot. It installs an SSH key out of the repository, trusts the host, waits, and then clones:
FROM a76yyyy/pycurl:latest
ADD ssh/qd_fetch /root/.ssh/id_rsa
WORKDIR /usr/src/appThe same instruction chain runs `ssh-keyscan gitee.com > /root/.ssh/known_hosts`, sets the key to mode 600, computes `let num=$RANDOM%100+10`, sleeps that many seconds, and clones with `git clone --depth 1 [email protected]:qd-today/qd.git`. Two consequences follow. The contents of a built image are whatever master looked like at the moment the build ran, so an image tag is not a version you can point at later. And building requires egress to a third party git host plus a usable private key that lives in the tree, which means the build is not reproducible from the public repository alone and not runnable in an isolated network. The random ten to one hundred and nine second delay reads as a deliberate throttle on that clone.
Three Dockerfiles, two alternative image tags, and a base image on a moving tag
The repository carries Dockerfile, Dockerfile.ja3 and Dockerfile.lite at its root. The compose file uses the qdtoday/qd:latest image by default and offers two other image tags as commented alternatives, each with its Chinese label:
version: "3"
services:
qd:
image: qdtoday/qd:latest
# image: qdtoday/qd:lite-latest # 精简版
# image: qdtoday/qd:dev # 开发版
container_name: qd
depends_on:
- redis
ports:
- "8923:80"
volumes:
- "./config:/usr/src/app/config"The first alternative is marked as the trimmed build and the second as the development build. The main Dockerfile builds on a76yyyy/pycurl:1.5.0, a pinned version of a base image whose comments say it already provides pycurl with the ja3 patch, ddddocr, OpenCV and onnxruntime.
The sample compose file sets COOKIE_SECRET and AES_KEY to the same placeholder word
Almost every variable in the compose file is commented out, but the four security relevant ones are not:
environment:
# - USER0ISADMIN=True
- DOMAIN=
# - COOKIE_DAY=5
# - COOKIE_SECURE_MODE=False
- COOKIE_SECRET=binux
- PBKDF2_ITERATIONS=400
- AES_KEY=binuxBoth secrets are set to binux, and the password derivation iteration count is given as 400. That is the same word twice, in a file published with the project, so an instance started straight from the sample uses a key that anyone can read here. The empty DOMAIN value is the third active line. COOKIE_SECURE_MODE, which would turn on the secure flag, sits commented directly above the secret it protects. These are sample values in a sample file, but they are the values a copy and paste deployment will use unless a reader changes them.
The remaining behaviour is a commented menu of forty variables
The commented block is where the framework explains itself, since it names every knob it has. The server side has QD_DEBUG, BIND=0.0.0.0, PORT=80, MULTI_PROCESS, AUTO_RELOAD, GZIP, ACCESS_LOG, DISPLAY_IMPORT_WARNING and STATIC_URL_PREFIX. Scheduling has WORKER_METHOD=Queue, QUEUE_NUM=50, CHECK_TASK_LOOP=500, TASK_MAX_RETRY_COUNT=8, NEW_TASK_DELAY=1 and TASK_WHILE_LOOP_TIMEOUT=900.
Two pairs deserve attention. The network limits are TASK_REQUEST_LIMIT=1500, DOWNLOAD_SIZE_LIMIT=5242880, REQUEST_TIMEOUT=30.0, CONNECT_TIMEOUT=30.0 and DELAY_MAX_TIMEOUT=29.9, so the longest permitted delay sits just under the request timeout. There are also QD_EVIL=1000 and EVIL_PASS_LAN_IP=True. Also present: USE_PYCURL=True with a DNS_SERVER and CURL_ENCODING, and UNSAFE_EVAL_TIMEOUT=3.0 for the expression evaluation, named for what it is.
Three storage paths are supported and the sample wires up only redis
The compose file declares a dependency on a redis service and points the application at it:
- REDISCLOUD_URL=redis://redis:6379
# - REDIS_DB_INDEX=1
# - DB_TYPE=sqlite3
# - JAWSDB_MARIA_URL=mysql://user:pass@localhost:3306/dbname?auth_plugin=The pinned dependency list supports that spread. aiomysql 0.3.2 and pymysql 1.2.3 cover MySQL, aiosqlite 0.22.1 covers the embedded case, and redis 8.1.0 is pinned as well. The MySQL example is left as a shape rather than a setting, with user:pass standing in for real credentials, and REDIS_DB_INDEX is commented so a second logical database is not selected by default. Because the dependency block only lists redis, a deployment that picks MySQL has to supply that service itself. The SQL pool settings, QD_SQL_POOL_SIZE, QD_SQL_MAX_OVERFLOW, QD_SQL_POOL_PRE_PING and QD_SQL_POOL_RECYCLE, are present only as commented lines.
requirements.txt installs from a Tencent mirror and pins around Python 3.9
The file says it was generated by pipenv, and its index lines are not the defaults:
-i https://mirrors.cloud.tencent.com/pypi/simple/
--extra-index-url https://pypi.org/simple
aiohttp==3.12.15; python_version >= '3.9'
pycurl==7.45.6; python_version >= '3.5'
redis==6.2.0; python_version >= '3.9'
colorama; sys_platform == 'win32'Most of the async stack carries a 3.9 floor, so installing on an older interpreter quietly drops aiohttp, redis, multidict, frozenlist and greenlet rather than failing. cryptography 45.0.5 excludes python_full_version 3.9.0 and 3.9.1 exactly, and colorama is unpinned and Windows only, which is why it appears without a version. The build rewrites this file before installing: it deletes every ddddocr line and every packaging line, and on a 32 bit system it also skips numpy and opencv, because ddddocr does not support 32 bit builds. Install path and build path therefore do not install the same set.
Seven python entry points, one container, and an update script on the PATH
The root of the repository holds qd.py, run.py, web.py, worker.py, config.py, backup.py and chrole.py, plus a Procfile for a platform that expects one. The naming implies a split between a web process and a worker process, and the environment block backs that up with MULTI_PROCESS and WORKER_METHOD. The compose file defines a qd service that depends on a redis service, with no separate worker service shown.
update.sh sits at the root, and a Dockerfile comment says it now fetches an https archive rather than cloning from gitee. SECURITY.md is present for disclosures, and the compose file mounts ./config at /usr/src/app/config.
Editorial conclusion
QD is a reasonable way to turn a browser session into a repeating job, and the pinning is disciplined enough to read: every dependency carries either a lower bound or an exact pin, and the interesting knobs are visible even though they sit commented out. One thing has to be settled before running it anywhere that matters. Replace the cookie secret and AES key that the sample compose file sets to binux, or the stored session material is encrypted under a value published in the repository. Treat the recorded HAR files as credentials, and expect Chrome only.
Frequently asked questions
What does QD actually schedule, and where do the requests come from?
QD is a framework for running HTTP requests as scheduled tasks, built on a HAR editor and a Tornado server. The project states that, because maintenance effort is limited, only Chrome support is guaranteed.
Which browsers does QD promise to work with?
Chrome only. The project says its maintenance energy is limited and guarantees support for Chrome, asking for a pull request from anyone who has tested a different browser.
Does the QD Docker image build its contents from a tagged release?
The Dockerfile does not reference a release tag. It starts from the a76yyyy/pycurl:1.5.0 base image and copies requirements.txt in, and its comments say the build no longer clones from gitee.
Which secrets does the QD sample compose file set for me?
It sets COOKIE_SECRET=binux, AES_KEY=binux, PBKDF2_ITERATIONS=400 and an empty DOMAIN, while COOKIE_SECURE_MODE is left commented out. Port 8923 maps to 80 and ./config is mounted at /usr/src/app/config.
Which database does QD use when started from the sample compose file?
Redis. The service declares a depends_on redis entry and sets REDISCLOUD_URL=redis://redis:6379. DB_TYPE=sqlite3 and a JAWSDB_MARIA_URL line for MySQL are both present but commented out.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/qd-today-qd)Star history chart for your README
[](https://hysenlabs.com/projects/qd-today-qd)Was this useful?