title: why request stop after a certain time in python?
body: <p>I have this code, its function is to send a request of the type Jetta, to bring the text from the request, the website links are read from a text file, the problem is after sending 300 or 500 requests, the script stops without showing any error, it just stops working ??</p>
  <pre><code>import requests
  
  sites = open(r'site.txt', 'r', encoding=&quot;utf8&quot;).readlines()
  
  l_site = []
  
  for i in sites:
      l_site.append(i)
  
  
  for x in len(l_site):
      result = requests.get(f'{site}', allow_redirects=True).text
      open('result.txt', 'a').write(f'{result}\n')
  </code></pre>