title: Fetching Google search results through YAML
body: <p><strong>Note:</strong> I am a completely beginner in YAML and I have not understood why and how YAML yet. So, my question may contain some irrelevant content to YAML. Excuse me and please correct them.  </p>
  
  <p>In a music player (MusicBee), I found a plugin which fetches the lyrics for songs. How the lyric is fetched from the lyric provider is written in a YAML file (yml). And as an example the lyrics from the <a href="https://www.azlyrics.com/" rel="nofollow noreferrer">AZLyrics</a> fetched by the following yml file;</p>
  
  <pre><code>name: A-Z Lyrics Universe
  url: "http://www.azlyrics.com/lyrics/{artist}/{title}.html"
  extractor: '(?s)&lt;div&gt;\s+&lt;!--\s+Usage.*?\s+--&gt;(?P&lt;lyrics&gt;.+?)&lt;\/div&gt;'
  
  headers:
  - name: User-Agent
    value: 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0' # Firefox 30 Win x64 user agent
  
  variables:
  - &amp;artist
    name: artist
    filters:
      - [lowercase]
      - [strip_nonascii]
  - &lt;&lt;: *artist
    name: title
  
  filters:
  - [strip_html]
  - [trim]
  - [utf8_encode]
  </code></pre>
  
  <p>Here the URL of the lyric is directly given by; </p>
  
  <blockquote>
    <p><code>http://www.azlyrics.com/lyrics/{artist}/{title}.html</code></p>
  </blockquote>
  
  <p>But this is my problem. Instead using the above link I need to do a simple google search as</p>
  
  <blockquote>
    <p><code>https://www.google.lk/search?q={artist}+{title}+azlyrics+lyrics</code></p>
  </blockquote>
  
  <p>and grab the first URL from the searched result and then use it as the URL of the lyric.</p>
  
  <p><strong>Questions:</strong></p>
  
  <ol>
  <li>Does YAML, able to do the task that I need to do?</li>
  <li>If yes, How can I do it? How to deal with google results?</li>
  <li>If no, Can you give me any suggestions, what is the path I have to go to do my task?</li>
  </ol>
  
  <p><strong>Note:</strong> Heres, the <a href="https://github.com/mbfrankz/LyricsReloaded" rel="nofollow noreferrer">source code</a> of the given plugin.</p>