79527046

Date: 2025-03-22 06:46:54
Score: 2
Natty:
Report link

I am not sure, but you could evtl. try 'Session' instead of 'session' to keep-alive: like in the docs https://requests.readthedocs.io/en/latest/user/advanced/#keep-alive

if __name__ == "__main__":
    with requests.Session() as s:
        res = s.post(login_url, data=login_data)
        download_file(s)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: baloersch