title: Python request.get(URL) does not lead to a redirect although there's a redirect when trying in the browser
body: <p>There's this site called <a href="https://coolors.co" rel="nofollow noreferrer">https://coolors.co</a> and I want to grab the color palettes they generate programmatically. In the browser, I just click the button &quot;Start the generator!&quot;. The link the button is attached to is <a href="https://coolors.co/generate" rel="nofollow noreferrer">https://coolors.co/generate</a>. If I go to that url in the browser, the color palette is generated. Notice, that the url is changed to <a href="https://coolors.co/092327-0b5351-00a9a5-4e8098-90c2e7" rel="nofollow noreferrer">https://coolors.co/092327-0b5351-00a9a5-4e8098-90c2e7</a> (that's an example - the last part of the url is just the hex codes). There is obviously a redirect.</p>
  <p>But when I do this in Python with a get request, I am not redirected but stay on this intermediate site. When I look at r.text, it tells me &quot;This domain doesn't exist and is for sale&quot;.</p>
  <p>How do I fix this? How do I enable the redirect?</p>
  <p>Here's the code:</p>
  <pre><code>url = 'https://coolors.co/generate'
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'}
  r = requests.get(url, headers=headers)
  </code></pre>
  <p>Thanks!</p>