Testing a Spider
Open the App's web UI and go to Settings → Spider test, or open /spider.html directly. Python and QuickJS require the matching module first.
Workflow
- Load a Java JAR and pick a class, or load a
.py/.jsfile;extis optional. - Pick a method, fill in the arguments as a JSON array, run it and inspect the result and network log.
- After editing, save, reload and retest; you can format the source or restore a version.
- Once
playreturns a valid result, send it to the App and confirm playback.
Limits
- The App does not compile Java; after editing a
.javafile, rebuild and reload the JAR. - The default test timeout is 30 seconds; it can be set from 1 to 300.
- Reloading, cancelling or leaving cleans up the test job.
- If the source was changed by another page, reread it before saving.
Warning
Confirm the response, then confirm playback
A passing module test and a correct URL do not prove playback works. Always confirm picture, sound, subtitles and danmaku in the App.
Filling in arguments
Method arguments go into a JSON array in declaration order, for example:
which maps to categoryContent(tid, pg, filter, extend). Java HashMap and Python dict are both passed as JSON objects.