跳到正文

正在自动登录…

← 返回项目列表

martinkeith700/ruyiJS

网页自动化数据采集JS逆向

ruyiJS 是一个面向 AI 驱动自动化的极简浏览器,嵌入真实的 Firefox JavaScript 引擎和网络栈,无窗口无渲染器,用于网页抓取、JS 逆向、数据采集和绕过机器人检测。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/27 01:12:23 · 查看原文

值得看C++应用与服务
累计 Stars
71
当前热度
1 天内 · 小火
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/10/27 01:12:23

适用场景

适用于需要执行网站 JavaScript、绕过反爬验证、采集动态数据的场景,例如爬取需要签名或挑战的网站。

查看 README 依据
- **Truly headless.** No window, no layout, no renderer. A pure JavaScript + Web API environment that starts fast and stays light. - **Isolated and reproducible.** Each `Context` is its own process with a persistent JavaScript world and its own proxy, so sessions never leak into each other. - **Offline when you need it.** Serve scripts and responses yourself and replay a whole captured flow with no network. If you scrape, reverse-engineer web JavaScript, or collect data behind a challenge, it's for you. If a plain HTTP client already gets your pages, you don't need it.
| **瑞数 Ruishu 5/6** | Dynamic VM / page protection | `fangdi` · `cebwm` | | **极验 Geetest** | Slider / one-click | `geetest` | | **腾讯天御 Tencent Captcha** | No-feel + slider | `tianyu` | | **数美 Shumei** | Slider | `shumei` | | **网易易盾 NetEase Yidun** | Smart check | `yidun` | | **Arkose Labs + iovation** | Enterprise risk / device | `expedia-taap` | | **CreepJS** | Fingerprint audit — passes every section | `creepjs` | Full production data-collection flows: **BOSS 直聘**, **今日头条 Toutiao**, **抖音 Douyin**, **小红书 RedNote**, **Google**, **Expedia TAAP**.
使用方式

通过 Python 库使用,提供 Context 对象执行 JavaScript、加载页面、配置指纹、网络代理等。

查看 README 依据
Runs on **Windows x64** with **Python 3.10+** (verified on Python 3.14). The wheel bundles the pinned native runtime, so there's nothing else to download. ## 🚀 Quick start **1 · Install.** ```sh python -m pip install ruyijs ``` <sub>The wheel ships the SHA256-pinned SpiderMonkey + Necko runtime; local scripts run offline right after install. No browser download.</sub> **2 · Open a context and run JavaScript.** Variables and functions persist across `eval` calls within the same context. ```python from ruyijs import Context with Context() as context: context.eval("let count = 40")
print(context.eval("count += 2")) # 42 print(context.eval("navigator.userAgent")) ``` **3 · Point it at a real target.** Configure the environment, load the page, and let the site's own JavaScript mint whatever token it demands. ```python with Context(proxy="http://127.0.0.1:7890") as context: context.configure_fingerprint({ "navigator": {"language": "zh-CN", "hardwareConcurrency": 8}, "locale": {"timezone": "Asia/Shanghai"}, }) context.load_page("https://target.example/", html)
Execute scripts in a persistent context, load real HTML with iframes and classic scripts, and query the resulting DOM. References to live JS objects come back as `JSObject` / `JSFunction` you can call from Python. | Capability | How | | :-- | :-- | | Execute JS, keep state | `context.eval(src)` — variables and functions persist | | Get a callable back | `context.eval(src, to_py=False)` → `JSFunction` | | Load a page | `context.load_page(url, html)` — relative URLs resolve against `url` | | Top-level navigation | `context.navigate(url)` — no Referer, `Sec-Fetch-Site: none` |
部署要求

需要 Windows x64 和 Python 3.10 或更高版本,安装时无需额外下载浏览器。

查看 README 依据
Runs on **Windows x64** with **Python 3.10+** (verified on Python 3.14). The wheel bundles the pinned native runtime, so there's nothing else to download. ## 🚀 Quick start **1 · Install.** ```sh python -m pip install ruyijs ``` <sub>The wheel ships the SHA256-pinned SpiderMonkey + Necko runtime; local scripts run offline right after install. No browser download.</sub> **2 · Open a context and run JavaScript.** Variables and functions persist across `eval` calls within the same context. ```python from ruyijs import Context with Context() as context: context.eval("let count = 40")
已知限制

仅支持 Windows x64,没有浏览器窗口和完整页面布局渲染,仅用于自动化、分析和研究。

查看 README 依据
ruyiJS provides JavaScript execution and a broad Web API environment on **Windows x64**. It has **no browser window and no full page layout or rendering** — it is a tool for automation, analysis, and research. Use it in compliance with the terms of service of any site you interact with and with applicable law. **Related:** [**ruyiHttp**](https://gitee.com/losenine888/ruyiHttp) — a Requests-style Python HTTP library built on Firefox's native networking components. ## 💬 Contact

README

正在加载 README…

收录信息

仓库创建时间
2026/10/26 21:08:12
首次达标收录
2026/10/27 01:06:30
统计更新时间
2026/10/27 03:06:22

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.9 / 5

新颖度
3.9
实用价值
4.4
成熟度
4.1
实质含量
3.1

由 Jev 模型根据仓库描述与 README 评估,2026/10/27 01:06:29 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/26 22:53:21
许可证标识
NOASSERTION
Fork 数
42
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目