With the Python code below, I'm creating a web scraper:
import requests
def scrape(url):
req = requests.get(url)
with open('out.html', 'w') as f:
f.write(req.text)
It works for a few times, but eventually the website returns an error HTML page (when I open my browser, I have a captcha to complete)
Is there a method to get over this "ban" by changing your IP address, for example?