title: InvalidSchema No connection adapters Python Requests
body: <pre><code>def get_html(url):
      user_agent = {'User-Agent':''}
      r = requests.get(url, headers=user_agent)
      return r.text
  
  
  def get_page_data(html):
      soup = BeautifulSoup(html, 'lxml')
      pass
      
  
  def main():
      with open('p.csv', newline='', encoding='utf-8') as File:  
          reader = csv.reader(File)
          for url_row in reader:
              print(url_row)
              url = url_row
              get_page_data(get_html(url))
  </code></pre>
  <p>Mistake:</p>
  <pre><code>InvalidSchema
  No connection adapters were found for &quot;['https://www.website.com/page1/page2/']&quot;
  </code></pre>
  <p>That tried:</p>
  <p>Removed characters at the end of a line.</p>
  <p>Reduced the type list to str.</p>
  <p>In reality, I understand what the error is, requests cannot connect to the site, that the type of request must be a str, with a certain look, but still, can't figure it out on my own.
  How to connect to the site please help?</p>