title: Getting response 404 when making requests from text files. Python
body: <p>I am trying to read my URL-s from a text file, but when I print the response I get Response 404. When I put that same URL directly in the requests function, I get Response 200.
  Here is my code:</p>
  <pre><code>import requests
  
  file=open(&quot;/home/ilija/Downloads/dealerinspire1.txt&quot;,&quot;r&quot;)
  for i in file.readlines():
      page=requests.get(i)
      print(page)
  </code></pre>
  <p>Content of the text file:</p>
  <pre><code>https://www.somewebsite.com
  https://www.somewebsite1.com
  </code></pre>