title: Python requests, change IP address
body: <p>I am coding a web scraper for the website with the following Python code:</p>
  
  <pre><code>import requests
  
  def scrape(url):
      req = requests.get(url)
      with open('out.html', 'w') as f:
          f.write(req.text)
  </code></pre>
  
  <p>It works a few times but then an error HTML page is returned by the website (when I open my browser, I have a captcha to complete).</p>
  
  <p>Is there a way to avoid this “ban” by for example changing the IP address?</p>