title: How to get html page with requests for parsing?
body: <p>I am new in parsing of websites and I have problem to parse site. When I send request</p>
  <pre><code>import requests
  from fake_useragent import UserAgent
  
  ua = UserAgent()
  
  headers = {
      &quot;User-Agent&quot;: str(ua.random)
  }
  
  
  def get_html(url):
      session = requests.session()
      request = session.get(url, headers=headers)
      if request.ok:
          html = request.text
          session.close()
          return html
      session.close()
  </code></pre>
  <p>site return error 403. I found out that there is a protection against parsing, and you need to send cookie, but sample</p>
  <pre><code>cookie = {&quot;__cf_bm&quot;=&quot;AmFUHZm_M8VuNyER6T1hrgzR8iAy2YXugwG1rn.vCpU-1662910877-0-ATRIGhsUZNyoD6wztO1JvHCyAdzv5r7zEitRZWrG3051TQQhGnONmP6bHDoil1XrUqZcmkPDcWImr2I3WU3nleI=&quot;}
  request = session.get(url, headers=headers, cookies=cookie)
  </code></pre>
  <p>which I took from the header Set-cookie did not lead to a result. From browser I can receive this cookie and it will work</p>
  <pre><code>headers = {
      &quot;User-Agent&quot;: str(ua.random),
      &quot;Cookie&quot;: &quot;__Secure-access-token=3.0.2MYFHfKnT-GBYqUr9ARDsw.85.l8cMBQAAAABjCebGOQ7IqaN3ZWKgAICQoA..20220911164138&quot;
                &quot;.xkQl4cZUk82fBXlXw6X7m6u7ZR2RZ0i_XA1I25bZSEU; &quot;
                &quot;__Secure-refresh-token=3.0.2MYFHfKnT-GBYqUr9ARDsw.85.l8cMBQAAAABjCebGOQ7IqaN3ZWKgAICQoA&quot;
                &quot;..20220911164138.xxhYmm0vHYtq2sp0DV2njRInUTVktm6cI9sXjBd8xHk; __Secure-ab-group=85; &quot;
                &quot;__Secure-user-id=0; __cf_bm=5DrABSw5lqarljTnDX3YXCjTMsbW2oZOsy2vZjKnLfA-1662907298-0-AeNr&quot;
                &quot;+1ca4CeHQagStyYew4aWBL5hhIq03ugWx0nrIWL75fwcV9exyxLgMDRge0T52fQT&quot;
                &quot;/XQFeYdo489nANOhQ1GXOPKIHuX1SYI0yH21RC08QTyU1OFD6zzzAwBJUEPamUzpP+DThr1vo6y9eydSFplal56KMw&quot;
                &quot;/MpDltBUmAKrA4 &quot;
  }
  </code></pre>
  <p>I tried to parse <a href="https://seller.ozon.ru/news" rel="nofollow noreferrer">https://seller.ozon.ru/news</a>.
  Please, help to solve problem and correctly send the request and take the correct cookies format</p>