Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-rod/rod
A Chrome DevTools Protocol driver for web automation and scraping.
https://github.com/go-rod/rod
automation cdp chrome-devtools chrome-devtools-protocol chrome-headless crawling devtools devtools-protocol go golang gorod headless rod scraper testing web web-scraping
Last synced: 3 months ago
JSON representation
A Chrome DevTools Protocol driver for web automation and scraping.
- Host: GitHub
- URL: https://github.com/go-rod/rod
- Owner: go-rod
- License: mit
- Created: 2020-01-21T20:09:45.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T09:30:57.000Z (5 months ago)
- Last Synced: 2024-08-19T11:15:27.826Z (5 months ago)
- Topics: automation, cdp, chrome-devtools, chrome-devtools-protocol, chrome-headless, crawling, devtools, devtools-protocol, go, golang, gorod, headless, rod, scraper, testing, web, web-scraping
- Language: Go
- Homepage: https://go-rod.github.io
- Size: 3.78 MB
- Stars: 5,152
- Watchers: 47
- Forks: 338
- Open Issues: 130
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-go - rod - A Devtools driver to make web automation and scraping easy. (Selenium and browser control tools / Mock)
- awesome-rainmana - go-rod/rod - A Chrome DevTools Protocol driver for web automation and scraping. (Go)
- awesome-repositories - go-rod/rod - A Chrome DevTools Protocol driver for web automation and scraping. (Go)
- awesome-github-star - rod - rod | 4200 | (Go)
- go-awesome - Rod - A devtools driver designed to simplify automation and crawling that uses the browser's programmatic devtools interface to control the browser (Open source library / Desktop Development)
- awesome-go - rod - A Devtools driver to make web automation and scraping easy. Stars:`5.6K`. (Testing / Selenium and browser control tools)
- awesome-hacking-lists - go-rod/rod - A Chrome DevTools Protocol driver for web automation and scraping. (Go)
- awesome-go-extra - rod - 01-21T20:09:45Z|2022-08-25T17:30:04Z| (Testing / Selenium and browser control tools.)
- awesome-devops - Rod - A Devtools driver for web automation and scraping [go-rod.github.io](https://go-rod.github.io/) (Browser automation / Observability)
- awesome-chrome-devtools - Rod
- awesome-go-quant - rod - A Chrome DevTools Protocol driver for web automation and scraping. (Golang / Scraper)
- my-awesome - go-rod/rod - devtools,chrome-devtools-protocol,chrome-headless,crawling,devtools,devtools-protocol,go,golang,gorod,headless,rod,scraper,testing,web,web-scraping pushed_at:2024-12 star:5.6k fork:0.4k A Chrome DevTools Protocol driver for web automation and scraping. (Go)
- awesome - go-rod/rod - A Chrome DevTools Protocol driver for web automation and scraping. (Go)
- awesome - go-rod/rod - A Chrome DevTools Protocol driver for web automation and scraping. (Go)
README
# Overview
[![Go Reference](https://pkg.go.dev/badge/github.com/go-rod/rod.svg)](https://pkg.go.dev/github.com/go-rod/rod)
[![Discord Chat](https://img.shields.io/discord/719933559456006165.svg)][discord room]## [Documentation](https://go-rod.github.io/) | [API reference](https://pkg.go.dev/github.com/go-rod/rod?tab=doc) | [FAQ](https://go-rod.github.io/#/faq/README)
Rod is a high-level driver directly based on [DevTools Protocol](https://chromedevtools.github.io/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 文档](https://pkg.go.dev/github.com/go-rod/go-rod-chinese)
## 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](lib/launcher)
- High-level helpers like WaitStable, WaitRequestIdle, HijackRequests, WaitDownload, etc
- Two-step WaitEvent design, never miss an event ([how it works](https://github.com/ysmood/goob))
- Correctly handles nested iframes or shadow DOMs
- No zombie browser process after the crash ([how it works](https://github.com/ysmood/leakless))
- [CI](https://github.com/go-rod/rod/actions) enforced 100% test coverage## Examples
Please check the [examples_test.go](examples_test.go) file first, then check the [examples](lib/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](https://github.com/go-rod/rod/search?q=HandleAuth&unscoped_q=HandleAuth).
You can also search the GitHub [issues](https://github.com/go-rod/rod/issues) or [discussions](https://github.com/go-rod/rod/discussions),
a lot of usage examples are recorded there.[Here](lib/examples/compare-chromedp) is a comparison of the examples between rod and Chromedp.
If you have questions, please raise an [issues](https://github.com/go-rod/rod/issues)/[discussions](https://github.com/go-rod/rod/discussions) or join the [chat room][discord room].
## 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](http://www.catb.org/~esr/faqs/smart-questions.html) before you ask questions.
We use Github Projects to manage tasks, you can see the priority and progress of the issues [here](https://github.com/go-rod/rod/projects).
If you want to contribute please read the [Contributor Guide](.github/CONTRIBUTING.md).
[discord room]: https://discord.gg/CpevuvY