python-craigslist
python-craigslist copied to clipboard
Use requests.Session and urllib3.Retry support
Using requests.Session() allows for keep-alive connections and prevents repeated DNS queries that can cause some caching resolvers to fail transiently. Using urllib3.Retry allows for better, more dynamic handling of request retries.