An easy, performant web scraper, crawler, pre-rendering solution, or screenshotting tool

What is Chromedp?

Chromedp is a fast, simpler way to interact with the Chrome DevTools Protocol without any external dependencies, such as selenium or phantomjs, that you’d find in other implementations.It is a **lightweight Go implementation.**All you need is Chrome installed.

Why use chromedp?

  • PrerenderScrape DataScreenshots

To show you how it works, we’ll be using it to scrape the github.com and retrieve some text from an element on the page.

Things you should know about chromedp

  • By default, Chrome is run in headless modeYou can override the default options using DefaultExecAllocatorOptions .If you want to run chromedp in a headless environment, you can use the docker image below.

An example of overriding the default browser options

We’ll be working with the default options for this example.

So let’s get started…

#software-engineering #golang #data-science

Scrape the Web Faster, in Go with Chromedp
21.65 GEEK