title: Reading HTML page using Libreoffice Basic
body: <p>I'm new to LibreOffice Basic. I'm trying to write a macro in LibreOffice Calc that will read the name of a noble House of Westeros from a cell (e.g. Stark), and output the Words of that House by looking it up on <a href="http://awoiaf.westeros.org/index.php/House_Stark" rel="nofollow noreferrer">the relevant page</a> on A Wiki of Ice and Fire. It should work like this:</p>
  
  <p><img src="https://i.stack.imgur.com/oj2Ct.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/idbV1.png" alt="enter image description here"></p>
  
  <p>Here is the pseudocode:</p>
  
  <pre><code>Read HouseName from column A
  Open HtmlFile at "http://www.awoiaf.westeros.org/index.php/House_" &amp; HouseName
  Iterate through HtmlFile to find line which begins "&lt;table class="infobox infobox-body"" // Finds the info box for the page.
  Read Each Row in the table until Row begins Words
  Read the contents of the next &lt;td&gt; tag, and return this as a string.
  </code></pre>
  
  <p>My problem is with the second line, I don't know how to read a HTML file. How should I do this in LibreOffice Basic?</p>