title: How to use selectors properly
body: <p>I'm writing a crawler to retrieve some data from some pages, the logic of how to build it is very clear for me but I am very confused in how to use the selectors properly.</p>
  <p>I would like to get the title of some news using colly, I went to the page <a href="https://g1.globo.com/economia" rel="nofollow noreferrer">https://g1.globo.com/economia</a> and inspected the title that I would like to extract information -&gt; clicked inspect -&gt; copy selector.</p>
  <p>the selector is</p>
  <blockquote>
  <p>body &gt; div.glb-grid &gt; main &gt; div.row.content-head.non-featured &gt; div.title &gt; h1</p>
  </blockquote>
  <p>How can I put it correctly in this line of code?</p>
  <pre><code>detailCollector.OnHTML(&quot;body &gt;  div.glb-grid &gt; main &gt; div.row.content-head.non-featured &gt; div.title &gt; h1&quot;, func(element *colly.HTMLElement) {
      fmt.Println(element.Text)
  
  })
  </code></pre>
  <p>How is the correct way to parse this selector in a way that colly can understand? I couldn't find it in the colly documentation anything related to that.</p>