title: Iterate through a list of urls for web scraping with python using beautifulsoup (unknown url type)
body: <p>I'm trying to scrape the content of each url from a list that I have, there's no problem with that, my list is working fine,</p>
  <p>The original link is this: <a href="https://www.lamudi.com.mx/nuevo-leon/departamento/for-rent/" rel="nofollow noreferrer">https://www.lamudi.com.mx/nuevo-leon/departamento/for-rent/</a></p>
  <pre class="lang-py prettyprint-override"><code>tags = soup('a',{'class':'js-listing-link'})
      for tag in tags:
          linktag = tag.get('href').strip()
          if linktag not in linklist:
              linklist.append(linktag)
  </code></pre>
  <p>The result of the above is a list of urls as strings. But then I try this:</p>
  <pre><code>for link in linklist[0]:
      page2=urllib.request.Request(link,headers={'User-Agent': 'Mozilla/5.0'})
      myhtml2 = urllib.request.urlopen(page2).read()
      soupfl = BeautifulSoup(myhtml2, 'html.parser')
  </code></pre>
  <p>just for proving that all is working, but I get an error:</p>
  <pre><code>raise ValueError(&quot;unknown url type: %r&quot; % self.full_url)
  </code></pre>
  <p>ValueError: unknown url type: 'h'</p>