Hello everyone, I sketched a simple program that collects data about goods in one online store. When I start everything is fine, but with frequent launch it crashes. Having looked on the Internet, I realized that this was due to frequent requests to the server, restarting the router, everything worked, but after a while it stopped again. Is it possible to somehow bypass this problem on a regular basis? I would be very grateful. Here is a piece of test file code:
def get_html(url): r = requests.get(url) print(r) return r.text def parse(html): soup = BeautifulSoup(html, "lxml") pages = soup.find("li", id="result_59") print(pages)