title: Parsing URL for scraping tasks
body: <p>I want to parse Some URL and visit the site and further scrap some data.</p>
  
  <p>Basically my current code is :</p>
  
  <pre class="lang-py prettyprint-override"><code>i = 9
  while(i &lt; 118):
    dict = {'start': i}
    url1 = urllib.urlencode(dict)
    url2 = urlparse.urljoin('http://intelligencesquaredus.org/debates/past-debates ', url1)
    print url2
    i = i + 9
  </code></pre>
  
  <p>Which yields results</p>
  
  <pre><code>http://intelligencesquaredus.org/debates/past-debates/start=9
  http://intelligencesquaredus.org/debates/past-debates/start=18
  http://intelligencesquaredus.org/debates/past-debates/start=27
  </code></pre>
  
  <p>But i want the link to be </p>
  
  <p><a href="http://intelligencesquaredus.org/debates/past-debates?start=9" rel="nofollow">http://intelligencesquaredus.org/debates/past-debates?start=9</a></p>
  
  <p>Any help would be appreciated.
  Thanks in advance</p>