{"id":12630528,"name":"github.com/runZeroInc/go-rod","ecosystem":"go","description":"Package rod is a high-level driver directly based on DevTools Protocol.\n\nThis example opens https://github.com/, searches for \"git\",\nand then gets the header element which gives the description for Git.\n\nRod use https://golang.org/pkg/context to handle cancellations for IO blocking operations, most times it's timeout.\nContext will be recursively passed to all sub-methods.\nFor example, methods like Page.Context(ctx) will return a clone of the page with the ctx,\nall the methods of the returned page will use the ctx if they have IO blocking operations.\nPage.Timeout or Page.WithCancel is just a shortcut for Page.Context.\nOf course, Browser or Element works the same way.\n\nShows how we can further customize the browser with the launcher library.\nUsually you use launcher lib to set the browser's command line flags (switches).\nDoc for flags: https://peter.sh/experiments/chromium-command-line-switches\n\nShows how to change the retry/polling options that is used to query elements.\nThis is useful when you want to customize the element query retry logic.\n\nWhen rod doesn't have a feature that you need. You can easily call the cdp to achieve it.\nList of cdp API: https://github.com/runZeroInc/go-rod/tree/main/lib/proto\n\nShows how to disable headless mode and debug.\nRod provides a lot of debug options, you can set them with setter methods or use environment variables.\nDoc for environment variables: https://pkg.go.dev/github.com/runZeroInc/go-rod/lib/defaults\n\nWe use \"Must\" prefixed functions to write example code. But in production you may want to use\nthe no-prefix version of them.\nAbout why we use \"Must\" as the prefix, it's similar to https://golang.org/pkg/regexp/#MustCompile\n\nShows how to share a remote object reference between two Eval.\n\nShows how to listen for events.\n\nShows how to intercept requests and modify\nboth the request and the response.\nThe entire process of hijacking one request:\n\nThe --req-\u003e and --res-\u003e are the parts that can be modified.\n\nShow how to handle multiple results of an action.\nSuch as when you login a page, the result can be success or wrong password.\n\nExample_search shows how to use Search to get element inside nested iframes or shadow DOMs.\nIt works the same as https://developers.google.com/web/tools/chrome-devtools/dom#search\n\nShows how to update the state of the current page.\nIn this example we enable the network domain.\n\nRod uses mouse cursor to simulate clicks, so if a button is moving because of animation, the click may not work as expected.\nWe usually use WaitStable to make sure the target isn't changing anymore.\n\nWhen you want to wait for an ajax request to complete, this example will be useful.","homepage":"https://github.com/runZeroInc/go-rod","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/runZeroInc/go-rod","keywords_array":[],"namespace":"github.com/runZeroInc","versions_count":31,"first_release_published_at":"2026-01-04T04:23:53.000Z","latest_release_published_at":"2026-05-27T23:21:11.000Z","latest_release_number":"v0.0.30","last_synced_at":"2026-05-29T11:57:09.280Z","created_at":"2025-12-28T00:32:04.578Z","updated_at":"2026-05-29T11:57:09.280Z","registry_url":"https://pkg.go.dev/github.com/runZeroInc/go-rod","install_command":"go get github.com/runZeroInc/go-rod","documentation_url":"https://pkg.go.dev/github.com/runZeroInc/go-rod#section-documentation","metadata":{},"repo_metadata":{},"repo_metadata_updated_at":"2025-12-28T00:37:34.501Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":5.364876194402437,"dependent_packages_count":5.027391232823497,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":5.1961337136129675},"purl":"pkg:golang/github.com/run%21zero%21inc/go-rod","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/runZeroInc/go-rod","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/runZeroInc/go-rod","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/runZeroInc/go-rod/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FrunZeroInc%2Fgo-rod/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FrunZeroInc%2Fgo-rod/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FrunZeroInc%2Fgo-rod/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FrunZeroInc%2Fgo-rod/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FrunZeroInc%2Fgo-rod/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2FrunZeroInc%2Fgo-rod/codemeta","maintainers":[]}