title: python requests problem: cloudflare error message "enable cookies"
body: <p>I was planning on creating a basic web scraper for the site Sneakersnstuff.com however my efforts were stopped early due to an error. When requesting to the url <a href="https://www.sneakersnstuff.com/" rel="noreferrer">https://www.sneakersnstuff.com/</a>, rather than displaying the html of the website, or even the entrance captcha, I am redirected to a cloudflare page with the error message "enable cookies". Both my code and the response are shown below</p>
  
  <pre><code>import requests
  import cfscrape
  
  
  session = requests.session()
  
  response = session.get('https://www.sneakersnstuff.com/')
  
  print(response.headers)
  </code></pre>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;!--[if lt IE 7]&gt; &lt;html class="no-js ie6 oldie" lang="en-US"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 7]&gt;    &lt;html class="no-js ie7 oldie" lang="en-US"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 8]&gt;    &lt;html class="no-js ie8 oldie" lang="en-US"&gt; &lt;![endif]--&gt;
  &lt;!--[if gt IE 8]&gt;&lt;!--&gt;
  &lt;html class="no-js" lang="en-US"&gt;
  &lt;!--&lt;![endif]--&gt;
  
  &lt;head&gt;
      &lt;title&gt;Access denied | www.sneakersnstuff.com used Cloudflare to restrict access&lt;/title&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" /&gt;
      &lt;meta name="robots" content="noindex, nofollow" /&gt;
      &lt;meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" /&gt;
      &lt;link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css"
          media="screen,projection" /&gt;
      &lt;!--[if lt IE 9]&gt;&lt;link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /&gt;&lt;![endif]--&gt;
      &lt;style type="text/css"&gt;
          body {
              margin: 0;
              padding: 0
          }
      &lt;/style&gt;
  
  
      &lt;!--[if gte IE 10]&gt;&lt;!--&gt;
      &lt;script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"&gt;&lt;/script&gt;
      &lt;!--&lt;![endif]--&gt;
      &lt;!--[if gte IE 10]&gt;&lt;!--&gt;
      &lt;script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"&gt;&lt;/script&gt;
      &lt;!--&lt;![endif]--&gt;
  
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div id="cf-wrapper"&gt;
          &lt;div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies"&gt;Please
              enable cookies.&lt;/div&gt;
          &lt;div id="cf-error-details" class="cf-error-details-wrapper"&gt;
              &lt;div class="cf-wrapper cf-header cf-error-overview"&gt;
                  &lt;h1&gt;
                      &lt;span class="cf-error-type" data-translate="error"&gt;Error&lt;/span&gt;
                      &lt;span class="cf-error-code"&gt;1020&lt;/span&gt;
                      &lt;small class="heading-ray-id"&gt;Ray ID: 578133293d83e0d6 &amp;bull; 2020-03-22 16:13:25 UTC&lt;/small&gt;
                  &lt;/h1&gt;
                  &lt;h2 class="cf-subheadline"&gt;Access denied&lt;/h2&gt;
              &lt;/div&gt;&lt;!-- /.header --&gt;
  
              &lt;section&gt;&lt;/section&gt;&lt;!-- spacer --&gt;
  
              &lt;div class="cf-section cf-wrapper"&gt;
                  &lt;div class="cf-columns two"&gt;
                      &lt;div class="cf-column"&gt;
                          &lt;h2 data-translate="what_happened"&gt;What happened?&lt;/h2&gt;
                          &lt;p&gt;This website is using a security service to protect itself from online attacks.&lt;/p&gt;
  
                      &lt;/div&gt;
  
  
  
                  &lt;/div&gt;
              &lt;/div&gt;&lt;!-- /.section --&gt;
  
              &lt;div class="cf-error-footer cf-wrapper"&gt;
                  &lt;p&gt;
                      &lt;span class="cf-footer-item"&gt;Cloudflare Ray ID: &lt;strong&gt;578133293d83e0d6&lt;/strong&gt;&lt;/span&gt;
                      &lt;span class="cf-footer-separator"&gt;&amp;bull;&lt;/span&gt;
                      &lt;span class="cf-footer-item"&gt;&lt;span&gt;Your IP&lt;/span&gt;: 96.241.108.243&lt;/span&gt;
                      &lt;span class="cf-footer-separator"&gt;&amp;bull;&lt;/span&gt;
                      &lt;span class="cf-footer-item"&gt;&lt;span&gt;Performance &amp;amp; security by&lt;/span&gt; &lt;a
                          href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link"
                          target="_blank"&gt;Cloudflare&lt;/a&gt;&lt;/span&gt;
  
                  &lt;/p&gt;
              &lt;/div&gt;&lt;!-- /.error-footer --&gt;
  
  
          &lt;/div&gt;&lt;!-- /#cf-error-details --&gt;
      &lt;/div&gt;&lt;!-- /#cf-wrapper --&gt;
  
      &lt;script type="text/javascript"&gt;
          window._cf_translation = {};
  
  
      &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I have attempted using a library reccomend by many called cfscrape to no avail. </p>