title: Find and append each reference to a html link - Python
body: <p>I have a HTML file I got from Wikipedia and would like to find every link on the page such as <code>/wiki/Absinthe</code> and replace it with the current directory added to the front such as <code>/home/fergus/wikiget/wiki/Absinthe</code> so for:</p>
  
  <pre><code>&lt;a href="/wiki/Absinthe"&gt;Absinthe&lt;/a&gt;
  </code></pre>
  
  <p>becomes:</p>
  
  <pre><code>&lt;a href="/home/fergus/wikiget/wiki/Absinthe"&gt;Absinthe&lt;/a&gt;
  </code></pre>
  
  <p>and this is throughout the whole document.</p>
  
  <p>Do you have any ideas? I'm happy to use BeautifulSoup or Regex!</p>