How Do You Handle Import Requests in Your Projects? or What’s the Best Way to Manage Import Requests

22 Replies, 1741 Views

Yo, sessions are KEY if you’re making lots of calls. Like:

```python
with requests.Session() as s:
s.get(url)
```

Saves you from re-establishing connections every time.

For 429s, backoff is your friend. `time.sleep()` is ugly but works in a pinch.

Messages In This Thread



Users browsing this thread: 1 Guest(s)