1 个仓库
Programmatically navigating website hierarchies by extracting links and triggering requests without a browser engine.
Distinct from HTTP Request Execution: None of the candidates cover the specific pattern of extracting link tags to simulate navigation without JavaScript execution.
Explore 1 awesome GitHub repository matching web development · Headless HTTP Navigation. Refine with filters or upvote what's useful.
MechanicalSoup 是一个 Python Web 自动化库和抓取框架,旨在模拟浏览器会话并导航网站,而无需执行 JavaScript。它作为一个 HTML 解析工具和 HTTP 会话管理器,允许程序化检索页面内容和自动化 Web 交互。 该库通过将会话持久性与自动表单交互相结合而脱颖而出。它将用户数据映射到 HTML 输入字段和选择框以进行程序化提交,并通过在多个请求中管理 Cookie 和用户代理标头来维护身份验证状态。它还包括诊断工具,将当前 HTML 状态导出到本地文件,以便在外部浏览器中进行视觉验证。 该框架涵盖了广泛的功能,包括无头 HTTP 导航、通过 CSS 选择器和正则表达式进行内容提取,以及自动文件下载。它还支持关键字搜索执行和 HTML 元素检查,以模拟用户在网站层次结构中的移动。
Navigates website hierarchies by extracting link tags and triggering new requests without executing JavaScript.