title: Parse the relative link and absolute link using python
body: <p>Its a project for downloading images, audios, videos etc .
  But in some sites, i found there is no full link. Just relative path.
  So I dont know how to get those relative links.</p>
  
  <p>My full project is in:</p>
  
  <pre><code>https://github.com/MuneebKalathil/MaD
  </code></pre>
  
  <p>This is my example link , I want to download all images from this link . There are thumbnail images , But i dont want that images . If you click the thumbnails , It will Go to  original Image page . I want to download that images</p>
  
  <pre><code>http://www.ragalahari.com/actress/14035/kajal-aggarwal-at-memu-saitham-dinner-with-stars.aspx
  </code></pre>
  
  <p>Some part of the source is:</p>
  
  <pre><code>&lt;tr&gt;
  &lt;td id='pagingCell'&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td align='center'&gt;&lt;div id='galdiv' style='float:center;margin-right:3px;;margin-bottom:3px'&gt;
  &lt;a href='/actress/14035/kajal-aggarwal-at-memu-saitham-dinner-with-stars/image1.aspx' &gt;&lt;img src="http://imgcdn.raagalahari.com/nov2014/starzone/kajal-agarwal-memu-saitham/kajal-agarwal-memu-saitham1t.jpg" alt="Kajal Aggarwal" title="Kajal Aggarwal at Dine with Stars Memu Saitham"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>And , I want to get a relative link address first:</p>
  
  <pre><code>/actress/14035/kajal-aggarwal-at-memu-saitham-dinner-with-stars/image1.aspx
  </code></pre>
  
  <p>and find it's absolute path.</p>