MIT License

项目介绍

go-rod/rod 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 MIT License 许可证,目前获得 7.1k 个 Star、489 次 Fork。

仓库全名
go-rod/rod
开源许可证
MIT License
Star 数
7.1k
Fork 数
489
未关闭 Issue
217

README 摘要

Overview Documentation | API reference | FAQ Rod is a high-level driver directly based on DevTools Protocol. It's designed for web automation and scraping for both high-level and low-level use, senior developers can use the low-level packages and functions to easily customize or build up their own version of Rod, the high-level functions are just examples to build a default version of Rod. 中文 API 文档 Features Chained…

完整内容见 GitHub 原始 README 或本页 。

常见问题

rod 用什么语言开发?

主要使用 Go 编写,采用 MIT License 许可证,目前有 7.1k 个 Star。

rod 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 rod 的源码?

可以直接克隆仓库:git clone https://github.com/go-rod/rod.git,默认分支为 main;安装与运行步骤见仓库 README。

rod 最近还在维护吗?

仓库最近一次更新为 8月11日,当前有 217 个未关闭 Issue;Star 数为 7.1k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A Chrome DevTools Protocol driver for web automation and scraping.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

CSS
Dockerfile
Go
HTML
JavaScript

Release

README

Overview

Go Reference Discord Chat

Documentation | API reference | FAQ

Rod is a high-level driver directly based on DevTools Protocol. It’s designed for web automation and scraping for both high-level and low-level use, senior developers can use the low-level packages and functions to easily customize or build up their own version of Rod, the high-level functions are just examples to build a default version of Rod.

中文 API 文档

Features

  • Chained context design, intuitive to timeout or cancel the long-running task
  • Auto-wait elements to be ready
  • Debugging friendly, auto input tracing, remote monitoring headless browser
  • Thread-safe for all operations
  • Automatically find or download browser
  • High-level helpers like WaitStable, WaitRequestIdle, HijackRequests, WaitDownload, etc
  • Two-step WaitEvent design, never miss an event (how it works)
  • Correctly handles nested iframes or shadow DOMs
  • No zombie browser process after the crash (how it works)
  • CI enforced 100% test coverage

Examples

Please check the examples_test.go file first, then check the examples folder.

For more detailed examples, please search the unit tests. Such as the usage of method HandleAuth, you can search all the *_test.go files that contain HandleAuth, for example, use GitHub online search in repository. You can also search the GitHub issues or discussions, a lot of usage examples are recorded there.

Here is a comparison of the examples between rod and Chromedp.

If you have questions, please raise an issues/discussions or join the chat room.

Sponsors

Rod is sponsored by many organizations and individuals, thank you for your support!

Please contact [email protected] if you want to be listed here.

Browser testing via

TestMu AI Logo

Join us

Your help is more than welcome! Even just open an issue to ask a question may greatly help others.

Please read How To Ask Questions The Smart Way before you ask questions.

If you want to contribute please read the Contributor Guide.

评论

暂无评论