To minimize the risk of bans:
Use rotating residential proxies to change IPs frequently.
Limit the number of requests per IP to stay under detection thresholds.
Mimic human-like browsing behavior with varied request timing.
Avoid scraping too aggressively or violating website terms of service.
Use premium proxies from reputable providers to access clean IPs. http://blog.piguse.com/blog/network-basics/selection-and-configuration