Four spaces, not tab
Compact formatting
--user
Short flags
_url helper method
response.raise_for_status

Perfer it to checking against hardcoded status codes.
Simpler assignments