juliomalegria / python-craigslist

Simple Craigslist wrapper
MIT No Attribution
387 stars 165 forks source link

Use requests.Session and urllib3.Retry support #115

Open incontestableness opened 2 years ago

incontestableness commented 2 years ago

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.