#!/usr/bin/env python3 """ spider_mpa.py [--cookie "k=v; k2=v2"] [--max 200] [--depth 4] 参考模板 — 非通用成品。执行前须按目标调整 --exclude、cookie、depth/max 等同域策略。 Fallback for NON-SPA targets (traditional server-rendered MPAs: Django/Rails/PHP/ JSP, classic admin panels). When there is no JS endpoint bundle, the API surface lives in HTML
, , and inline-JS ajax urls. This BFS-crawls the same origin and extracts: - forms.txt : METHOD action [param1, param2, ...] (the real "endpoints") - links.txt : every same-origin URL reached - api_inline.txt : url-ish strings found in inline