InvalidSchema("No connection adapters were found for '%s'" % url)
<p>I was able to gather data from a web page using this </p>

<pre><code>import requests
import lxml.html
import re
url = "http://animesora.com/flying-witch-episode-7-english-subtitle/"
r = requests.get(url)
page = r.content
dom =  lxml.html.fromstring(page)

for link in dom.xpath('//div[@class="downloadarea"]//a/@href'):
    down = re.findall('https://.*',link)     
    print (down)
</code></pre>

<p>when I try this to gather more data on the results of the above code I was presented with this error:</p>

<pre><code>Traceback (most recent call last):
  File "/home/sven/PycharmProjects/untitled1/.idea/test4.py", line 21, in &lt;module&gt;
    r2 = requests.get(down)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 590, in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 672, in get_adapter
    raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for '['https://link.safelinkconverter.com/review.php?id=aHR0cDovLygqKC5fKC9zTGZYZ0s=&amp;c=1&amp;user=51757']'
</code></pre>

<p>This is the code I was using:</p>

<pre><code>for link2 in down:
    r2 = requests.get(down)
    page2 = r.url
    dom2 = lxml.html.fromstring(page2)

for link2 in dom2('//div[@class="button green"]//onclick'):

    down2 = re.findall('.*',down2)
    print (down2)
</code></pre>

<p>You are passing in the <em>whole list</em>:</p>

<pre><code>for link2 in down:
    r2 = requests.get(down)
</code></pre>

<p>Note how you passed in <code>down</code>, <em>not</em> <code>link2</code>. <code>down</code> is a list, not a single URL string.</p>

<p>Pass in <code>link2</code>:</p>

<pre><code>for link2 in down:
    r2 = requests.get(link2)
</code></pre>

<p>I'm not sure why you are using regular expressions. In the loop</p>

<pre><code>for link in dom.xpath('//div[@class="downloadarea"]//a/@href'):
</code></pre>

<p>each <code>link</code> is <em>already</em> a fully qualified URL:</p>

<pre><code>&gt;&gt;&gt; for link in dom.xpath('//div[@class="downloadarea"]//a/@href'):
...     print link
...
https://link.safelinkconverter.com/review.php?id=aHR0cDovLygqKC5fKC9FZEk2Qg==&amp;c=1&amp;user=51757
https://link.safelinkconverter.com/review.php?id=aHR0cDovLygqKC5fKC95Tmg2Qg==&amp;c=1&amp;user=51757
https://link.safelinkconverter.com/review.php?id=aHR0cDovLygqKC5fKC93dFBmVFg=&amp;c=1&amp;user=51757
https://link.safelinkconverter.com/review.php?id=aHR0cDovLygqKC5fKC9zTGZYZ0s=&amp;c=1&amp;user=51757
</code></pre>

<p>You don't need to do any further processing on that.</p>

<p>Your remaining code has more errors; you confused <code>r2.url</code> with <code>r2.content</code>, and forgot the <code>.xpath</code> part in your <code>dom2.xpath(...)</code> query.</p>

python python-requests