I use requests.post(url, headers, timeout=10) and sometimes I received a ReadTimeout exception HTTPSConnectionPool(host=\'domain.com\', port=443): Read ti
requests.post(url, headers, timeout=10)
ReadTimeout exception HTTPSConnectionPool(host=\'domain.com\', port=443): Read ti
Another thing you can try is at the end of your code block, include the following:
time.sleep(2)
This worked for me. The delay is longer (in seconds) but might help overcome the issue you're having.