An easy, performant web scraper, crawler, pre-rendering solution, or screenshotting tool
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.
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.
DefaultExecAllocatorOptions
.If you want to run chromedp in a headless environment, you can use the docker image below.We’ll be working with the default options for this example.
So let’s get started…
#software-engineering #golang #data-science