How do I get Authorization code?

I’m new to the platform. Yes I won’t use ‘@’

Also requests. get gives the same response
r = requests.get(url=COMPLETE_URL,allow_redirects=True)

Instead can you suggest what I should be using?