<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Content on Gopher Coding</title><link>https://gophercoding.com/tags/content/</link><description>Recent content in Content on Gopher Coding</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 02 Apr 2023 12:13:48 +0100</lastBuildDate><atom:link href="https://gophercoding.com/tags/content/index.xml" rel="self" type="application/rss+xml"/><item><title>A Basic Web Scraper in Go</title><link>https://gophercoding.com/web-scraper/</link><pubDate>Sun, 19 Mar 2023 09:30:00 +0000</pubDate><guid>https://gophercoding.com/web-scraper/</guid><description>&lt;p>A basic web scraper usually involves a few steps, fetching the content, querying it for the data you&amp;rsquo;re after and then sometimes, using that data to go and find more as a loop.&lt;/p>
&lt;p>In our example below, we use a package called &lt;code>goquery&lt;/code> to do most of the heavy lifting for us. This library will go further than Go&amp;rsquo;s standard library by allowing us to do both the first and second steps a bit easier. It uses &lt;code>NewDocument()&lt;/code> to get the content, then &lt;code>Find()&lt;/code> to query it.&lt;/p></description></item></channel></rss>