gpt4 book ai didi

python - 从 GET 请求中得到错误的响应

转载 作者:太空宇宙 更新时间:2023-11-04 04:02:35 26 4
gpt4 key购买 nike

我正在使用 BurpSuite 拦截 http://sneakersnstuff.com 发送的包.第一个请求是以下请求:

GET /en/auth/view HTTP/1.1
Host: www.sneakersnstuff.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: close
Upgrade-Insecure-Requests: 1

回复:

HTTP/1.1 403 Forbidden
Date: Mon, 16 Sep 2019 09:21:14 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Set-Cookie: __cfduid=d791d44829fdde014df45bb3e9671e8f71568625674; expires=Tue, 15-Sep-20 09:21:14 GMT; path=/; domain=.sneakersnstuff.com; HttpOnly
Cache-Control: max-age=2
Expires: Mon, 16 Sep 2019 09:21:16 GMT
X-Frame-Options: SAMEORIGIN
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Vary: Accept-Encoding
Set-Cookie: __cf_bm=a95faf1dfaa2eb32abd3fae494002bcf6b35ae93-1568625674-1800-AZVg4LQH3/RQ7cN285UiNAKrmsUPFe2LFKbgUPTpc5vE/VLUtX43OnvwnSwCj9Xk/0bwTRLNHEBfgInW0vXfsK0=; path=/; expires=Mon, 16-Sep-19 09:51:14 GMT; domain=.sneakersnstuff.com; HttpOnly
Server: cloudflare
CF-RAY: 5171c4e1fd3dc2c2-FRA
Content-Length: 19712

<!DOCTYPE html>
<html>

<head>
<title>Sneakersnstuff - Man or machine</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex">
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="favicon.ico" />

<script>!function(a,e,t,c,n,g,s){a.GoogleAnalyticsObject=n,a.ga=a.ga||function(){(a.ga.q=a.ga.q||[]).push(arguments)},a.ga.l=1*new Date,g=e.createElement(t),s=e.getElementsByTagName(t)[0],g.async=1,g.src="https://www.google-analytics.com/analytics.js",s.parentNode.insertBefore(g,s)}(window,document,"script",0,"ga"),ga("create","UA-1918066-1","auto"),ga("send",{hitType:"pageview",page:"/sns-cf-captcha",title:"CF Captcha",rayId:"5171c4e1fd3dc2c2",clientIP:"178.255.153.77"});</script>
<style>blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}audio,embed,img,object,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}body{background:#fff;font-family:LL Circular,Arial,sans-serif;font-size:15px;line-height:150%}h1,h2{font-weight:700}h1{font-size:32px;margin-bottom:20px;margin-top:60px}h2{font-size:18px;margin-bottom:15px;margin-top:50px}p{margin-bottom:10px}.container{margin:80px auto 60px;max-width:40em}.catchpa{margin-bottom:30px}.dropdown{margin-top:30px}.dropdown-select{-webkit-appearance:none;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIzLjMgMjlMMTIgMTcuNmwxLjYtMS42IDkuNyA5LjggOS44LTkuOCAxLjYgMS42TDIzLjMgMjl6Ii8+PC9zdmc+) no-repeat;background-position:calc(100% - 1rem) 50%;background-size:1.5em;border:1px solid #000;font-size:1rem;line-height:1.3;padding:1rem 2.6rem 1rem 1rem}.dropdown-select:focus{outline:none}@media (max-width:700px){.container{padding:0 20px}}</style>
</head>

<body>
<div class="container">
<img id="logo" src="data:image/svg+xml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sNDEuMSw3LjQsNDQuOSw3LjR6Ii8+Cjwvc3ZnPgo=">
<div class="dropdown">
<select class="dropdown-select" id="select">
<option selected>Choose another Language</option>
<option value="en">English</option>
<option value="it">Italian</option>
<option value="fr">French</option>
<option value="ja">Japanese</option>
<option value="fi">Finnish</option>
<option value="da">Danish</option>
<option value="zh">Mandarin</option>
<option value="vi">Vietnamese</option>
<option value="es">Spanish</option>
<option value="nl">Dutch</option>
<option value="ko">Korean</option>
<option value="pl">Polish</option>
<option value="de">German</option>
<option value="sv">Swedish</option>
</select>
</div>
<div id="content">
<h1>Man or machine</h1>
<p>Welcome to Sneakersnstuff</p>
<p>Please complete a security check proving youâre not a robot in order to access the site.</p>
<h2>Why do I have to complete a CAPTCHA?</h2>
<p>Sneakerbots are creating a near-impossible situation for us to be able to do online releases in a fair
way. We work hard to provide you with the best possible experience. Our bot fighter bot has determined
that your browser signature might be of the automated sort. If youâre in fact a human being, we
apologize and kindly ask you to please solve the captcha to continue using our site.</p>
</div>
<div id="captcha"><form class="challenge-form" id="challenge-form" action="/cdn-cgi/l/chk_captcha" method="get">
<input type="hidden" name="s" value="b4a9442887923bdc00fb2c491b9a7a611235eee2-1568625674-1800-AVNo9xc/ddLnLOUNdCs1uVkpStxbmQh+oNQLhBcVyEjmeBKgSpKD0Yb+RmZXekAjjVkCXqjqXsTDTXs551FEEBShnj5SBoM6RQT4OiE26KL3ZaRYWDYD5li0PXcfWOE6rR6/8fS92yRuYQRK5ntix90NP7sbtCBk2p5WzcQru20kt7WxcO8Z2WN8eBWAiQ/gG4OD32ONDj7kxuTsX97OqvL33lvDwxD0w/1vLDYkqni5"></input>
<script type="text/javascript" src="/cdn-cgi/scripts/cf.challenge.js" data-type="normal" data-ray="5171c4e1fd3dc2c2" async data-sitekey="6LfBixYUAAAAABhdHynFUIMA_sa4s-XsJvnjtgB0"></script>
<div class="g-recaptcha"></div>
<noscript id="cf-captcha-bookmark" class="cf-captcha-info">
<div><div style="width: 302px">
<div>
<iframe src="https://www.google.com/recaptcha/api/fallback?k=6LfBixYUAAAAABhdHynFUIMA_sa4s-XsJvnjtgB0" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"></iframe>
</div>
<div style="width: 300px; border-style: none; bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px; background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
<textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid #c1c1c1; margin: 10px 25px; padding: 0px; resize: none;"></textarea>
<input type="submit" value="Submit"></input>
</div>
</div></div>
</noscript>
</form>
</div>
</div>
<script>var langMarkup={en:"<h1>Man or machine</h1><p>Welcome to Sneakersnstuff</p><p>Please complete a security check proving youâre not a robot in order to access the site.</p><h2>Why do I have to complete a CAPTCHA?</h2><p>Sneakerbots are creating a near-impossible situation for us to be able to do online releases in a fair way. We work hard to provide you with the best possible experience. Our bot fighter bot has determined that your browser signature might be of the automated sort. If youâre in fact a human being, we apologize and kindly ask you to please solve the captcha to continue using our site.</p>",it:"<h1>Benvenuto in Sneakersnstuff</h1><p>Si prega di completare un controllo di sicurezza dimostrando che non sei un robot per accedere al sito.</p><h2>Perché devo completare un CAPTCHA?</h2><p>Gli sneakerbots stanno creando una situazione quasi impossibile per noi in modo da poter pubblicare le pubblicazioni online in modo corretto. Lavoriamo duramente per offrirti la migliore esperienza possibile. Il nostro bot bot per i combattenti ha stabilito che la tua firma del browser potrebbe essere del tipo automatico. Se sei effettivamente un essere umano, ci scusiamo e ti chiediamo gentilmente di risolvere il captcha per continuare a utilizzare il nostro sito.</p>",fr:"<h1>Homme ou machine</h1><p>Bienvenue chez Sneakersnstuff</p><p>Veuillez compléter une vérification de sécurité prouvant que vous n'êtes pas un robot afin d'accéder au site.</p><h2>Pourquoi dois-je compléter un CAPTCHAâ¯?</h2><p>Les Sneakerbots créent une situation quasi-impossible pour être en mesure de faire nos sorties en ligne d'une manière équitable. Nous travaillons dur pour vous offrir la meilleure expérience possible. Notre bot fighter a déterminé que la signature de votre navigateur pourrait être du type automatisé. Si vous êtes en fait un être humain, nous vous prions de bien vouloir résoudre le captcha pour continuer à utiliser notre site.</p>",ja:"<h1>人éã¾ãã¯ãã·ã¼ã³</h1><p>Sneakersnstuffï¼ã¹ãã¼ã«ã¼ãºã¨ã³ã¹ã¿ããï¼ã¸ãããã</p><p>ã客æ§ãã­ãããã§ãªããã¨ã確èªããã¦ããã ãã¦ããã¾ãããµã¤ããã覧ã«ãªãåã«ãã»ã­ã¥ãªãã£ãã§ãã¯ããæ¸ã¾ããã ããã</p><h2>ãªãã­ã£ããã£ãå¿è¦ãªã®ã§ããï¼</h2><p>å½ç¤¾ãå¬æ­£ãªæ段ãç¨ãã¦ãªã³ã©ã¤ã³ãªãªã¼ã¹ãè¡ãããããSneakerbotsã¯æå³çã«å°é£ãªç¶æ³ãä½æãã¦ãã¾ãã å½ç¤¾ã¯ãã客æ§ã«æé«ã®ã«ã¹ã¿ãã¼ã¨ã¯ã¹ããªã¨ã³ã¹ããå±ãããããæ¥ãæ¹åãè¡ã£ã¦ãã¾ãã å½ç¤¾ã®ããããã¡ã¤ã¿ã¼ã­ãããã«ãããèªååããããã©ã¦ã¶ã®ã·ã°ããã£ã§ããå¯è½æ§ãããã¨å¤å®ããã¾ããã ã客æ§ã人éã§ããã£ãããå ´åã¯å¤§å¤ç³ã訳ãããã¾ããããå½ãµã¤ãããå©ç¨ããã ãå¿é ã®ãæç¶ãã¨ãªã£ã¦ããã¾ãããããååããã ãã¾ããããé¡ãç³ãä¸ãã¾ãã</p>",fi:"<h1>Ihminen vai kone</h2><p>Tervetuloa Sneakersnstuffille</p><p>Tee turvavarmennus osoittaaksesi ettet ole robotti ja vieraillaksesi sivustollamme.</p><h2>Miksi minun on tehtävä kuvavarmennus?</h2><p>Tennaribotit luovat lähes mahdottoman tilanteen tehdä verkkolanseerauksia reilulla tavalla. Teemme jatkuvasti töitä tarjotaksemme sinulle parhaan mahdollisen käyttökokemuksen. Botteja vastaan taisteleva bottimme on päätellyt, että selaimesi jälki muistuttaa automatisoitua tiliä. Jos kuitenkin olet ihminen, pahoittelemme ja pyydämme sinua suorittamaan kuvavarmennuksen jotta voit jatkaa sivustomme käyttöä.</p>",da:"<h1>Menneske eller maskine</h1><p>Velkommen til Sneakersnstuff</p><p>Genfør venligst et sikkerhedstjek, der beviser, at du ikke er en robot, der prøver at fÃ¥ adgang til hjemmesiden.</p><h2>Hvorfor skal jeg udfylde en CAPTCHA?</h2><p>Sneakerbots gør det næsten umuligt for os at lave online udgivelser pÃ¥ en retfærdig mÃ¥de. Vi gør vores bedste for at give dig den bedst mulige oplevelse. Vores botfighter-bot har fastslÃ¥et, at din browser-signatur kan være af den automatiserede slags. Hvis du rent faktisk er et menneske, undskylder vi og beder dig venligst om at udfylde captchaen for at fortsætte med at bruge vores hjemmeside.</p>",zh:"<h1>人æºè¯å«</h1><p>欢è¿æ¥å°Sneakersnstuff</p><p>请å®æå®å¨æ£æ¥ï¼è¯ææ¨ä¸æ¯æºå¨äººåæ¹å¯è®¿é®ç½ç«ã</p><h2>为ä»ä¹å¿é¡»è¦å¡«åCAPTCHAï¼</h2><p>Sneakerbots导è´æ们å ä¹æ æ³ä»¥å¬å¹³çæ¹å¼è¿è¡çº¿ä¸åå¸ã æ们ä¸éä½åå°ä¸ºæ¨æä¾æåºè²çä½éªã æ们çåæºå¨äººç¨åºæºå¨äººå¤æ­æ¨çæµè§å¨ç­¾åå¯è½æ¯ä»¥èªå¨åæ¹å¼äº§ççã å¦ææ¨å®éä¸æ¯ç人ï¼æ们åæ¨éæ­ï¼å¹¶æ³è¯·æ¨å¡«åCAPTCHA以便继续使ç¨æ们çç½ç«ã</p>",vi:"<h1>Con ngÆ°á»i hay máy móc</h1><p>Chào mừng bạn Äến Sneakersnstuff</p><p>Vui lòng hoàn thành kiá»m tra bảo mật chứng minh bạn không phải là robot Äá» truy cập trang web.</p><h2>Tại sao tôi phải hoàn thành CAPTCHA?</h2><p>Sneakerbots sẽ tạo má»t tình huá»ng gần nhÆ° không thá» Äá» chúng tôi có thá» phát hành trá»±c tuyến theo cách công bằng. Chúng tôi ná» lá»±c Äá» mang lại cho bạn trải nghiá»m tá»t nhất có thá». Robot chá»ng lại robot của chúng tôi Äã xác Äá»nh rằng chữ ký trong trình duyá»t của bạn có thá» là tá»± Äá»ng. Nếu bạn thá»±c sá»± là con ngÆ°á»i, chúng tôi xin lá»i và mong bạn vui lòng giải quyết captcha Äá» tiếp tục sá»­ dụng trang web của chúng tôi.</p>",es:"<h1>Hombre o máquina</h1><p>Bienvenido a Sneakersnstuff</p><p>Para acceder a nuestra página web, realiza la prueba de seguridad que demuestre que no eres un robot.</p><h2>¿Por qué tengo que completar un CAPTCHA?</h2><p>Los Sneakerbots están creando una situación que casi no nos permite realizar lanzamientos en línea de una manera justa. Trabajamos duro para ofrecerte la mejor experiencia posible. Nuestro bot que detecta robots ha determinado que la firma de tu navegador podría tener un origen automático. Si no eres un robot, te pedimos disculpas y solicitamos amablemente que resuelves el captcha para seguir utilizando nuestra página web</p>",nl:"<h1>Mens of machine</h1><p>Welkom bij Sneakersnstuff</p><p>Voltooi een veiligheidscheck om te bewijzen dat je geen robot bent, zodat je verder kunt naar de website. </p><h2>Waarom moet ik een CAPTCHA voltooien?</h2><p>Sneakerbots maken het voor ons bijna onmogelijk om op een eerlijke manier online releases aan te bieden. We werken er hard aan om je de best mogelijke ervaring te geven. Onze systeem tegen bots heeft vastgesteld dat je browser signature wellicht van de geautomatiseerde soort is. Ben je daadwerkelijk een persoon, bieden we je onze excuses aan en verzoeken we je vriendelijk de captcha op te lossen, zodat je onze site kunt blijven gebruiken.</p>",ko:"<h1>ì¬ë ëë 기ê³</h1><p>Sneakersnstuff 방문ì íìí©ëë¤</p><p>ì¬ì´í¸ì ì ìí기 ìí´ì ê·íê° ë¡ë´ì´ ìëì ì¦ëªíë ë³´ì ì²´í¬ë¥¼ ìë£í´ 주ì기 ë°ëëë¤.</p><h2>ì ë´ê° CAPTCHA를 ìë£í´ì¼ í©ëê¹?</h2><p>Sneakerbotsë ë¹ì¬ê° ê³µì í ë°©ë²ì¼ë¡ ì¨ë¼ì¸ ì¶ì를 í  ì ìë ê±°ì ë¶ê°ë¥ì ê°ê¹ì´ ìí©ì ë§ë¤ê³  ììµëë¤. ë¹ì¬ë ê·íìê² ê°ë¥í ìµì ì ê²½íì ì ê³µí기 ìí´ ì´ì¬í ë¸ë ¥í©ëë¤. ë¹ì¬ì bot fighter botì ê·íì ë¸ë¼ì°ì  ìê·¸ëì²ê° ìëíë ìë¨ì¼ ì ìë¤ê³  ê²°ì íìµëë¤. ê·íê° ì¤ì ë¡ ì¬ëì¸ ê²½ì°, ê·íìê² ì¬ê³¼ë리며, ë¹ì¬ì ì¬ì´í¸ ì´ì©ì ì§ìí려면 캡차를 í´ê²°í´ 주ì기를 ë¶íë립ëë¤.</p>",pl:"<h1>CzÅowiek czy maszyna</h1><p>Witamy w Sneakersnstuff</p><p>W celu uzyskania dostÄpu do strony musisz przejÅÄ przez kontrolÄ bezpieczeÅstwa i udowodniÄ, że nie jesteÅ robotem.</p><h2>Dlaczego muszÄ przechodziÄ weryfikacjÄ CAPTCHA?</h2><p>DziaÅalnoÅÄ sneakerbotów praktycznie uniemożliwia nam udostÄpnianie online w uczciwy sposób. DokÅadamy wszelkich staraÅ, by zapewniÄ Ci jak najlepsze wrażenia z użytkowania. Nasz skrypt antybotowy ustaliÅ, że podpis z Twojej przeglÄdarki może mieÄ zautomatyzowany charakter. JeÅli w rzeczywistoÅci jesteÅ czÅowiekiem, przepraszamy i prosimy o przejÅcie przez weryfikacjÄ captcha, aby kontynuowaÄ korzystanie z naszej strony.</p>",de:"<h1>Mensch oder Maschine</h1><p>Willkommen bei Sneakersnstuff</p><p>Bitte führe eine Sicherheitsprüfung durch, damit Du auf unsere Website zuzugreifen kannst, welche nachweist, dass Du kein Roboter bist.</p><h2>Warum muss ich ein CAPTCHA abschlieÃen?</h2><p>Sneakerbots schaffen eine nahezu unmögliche Situation für uns Online-Releases auf eine faire Weise zu anzubieten. Wir arbeiten hart, um Dir das bestmögliche Erlebnis auf SNS zu bieten. Unser Bot Fighter Bot hat festgestellt, dass Deine Browsersignatur möglicherweise automatisiert ist. Wenn Du tatsächlich ein Mensch bist, bitten wir Dich, das Captcha zu lösen, um unsere Website weiterhin nutzen zu können.</p>",sv:"<h1>Människa eller maskin</h1><p>Välkommen till Sneakersnstuff</p><p>Vänligen fyll i en säkerhetskontroll som visar att du inte är en robot för att komma Ã¥t webbplatsen.</p><h2>Varför mÃ¥ste jag slutföra en CAPTCHA?</h2><p>Sneakerbots skapar en nästan omöjlig situation för att vi ska kunna göra online-släpp pÃ¥ ett rättvist sätt. Vi anstränger oss för att ge dig den bästa möjliga upplevelsen. VÃ¥r botfigher-bot har fastställt att din webbläsar-signatur kan vara av den automatiserade sorten. Om du faktiskt är en människa ber vi om ursäkt samt önskar att du löser CAPTCHA:n för att fortsätta använda vÃ¥r webbplats.</p>"};function getFirstBrowserLanguage(){var e,t,n,a=window.navigator,i=["language","browserLanguage","systemLanguage","userLanguage"],r=null;if(a.language)return 2<a.language.length?a.language.substr(0,a.language.length-3):a.language;if(Array.isArray(a.languages))for(e=0;e<a.languages.length;e++)if(n=(t=a.languages[e]).length,!r&&n&&(r=t),t&&2<n)return t.substr(0,t.length-3);for(e=0;e<i.length;e++)if(n=(t=a[i[e]]).length,!r&&n&&(r=t),t&&2<n)return t.substr(0,t.length-3);return r.contains("-")&&(r=r.substr(0,r.length-3)),r}function changeContent(){var e=document.getElementById("content"),t=getFirstBrowserLanguage();if("en"!==t&&langMarkup.hasOwnProperty(t)){var n=langMarkup[t];e.innerHTML=n}}function changeContentOnSelect(){var e=document.getElementById("content"),t=event.target.value;if(langMarkup.hasOwnProperty(t)){var n=langMarkup[t];e.innerHTML=n}}changeContent();var select=document.getElementById("select");select.addEventListener("change",changeContentOnSelect);</script>
</body>

</html>

我的目标是使用 python 请求库模拟此请求并获得相同的响应。尽管如此,当我尝试使用以下代码这样做时:

import requests

session = requests.session()

headers = {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language": "en-US,en;q=0.5",
"Accept-Encoding": "gzip, deflate",
"DNT": "1",
"Connection": "close",
"Upgrade-Insecure-Requests": "1",
}
raw = session.get("https://www.sneakersnstuff.com/en/auth/view", headers= headers)
print(raw.text)

我收到这样的回复:

<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Access denied | www.sneakersnstuff.com used Cloudflare to restrict access</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
<style type="text/css">body{margin:0;padding:0}</style>


<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
<!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script><!--<![endif]-->



</head>
<body>
<div id="cf-wrapper">
<div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
<div id="cf-error-details" class="cf-error-details-wrapper">
<div class="cf-wrapper cf-header cf-error-overview">
<h1>
<span class="cf-error-type" data-translate="error">Error</span>
<span class="cf-error-code">1020</span>
<small class="heading-ray-id">Ray ID: 5371a03a1f24d621 &bull; 2019-09-16 07:46:12 UTC</small>
</h1>
<h2 class="cf-subheadline">Access denied</h2>
</div><!-- /.header -->

<section></section><!-- spacer -->

<div class="cf-section cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">
<h2 data-translate="what_happened">What happened?</h2>
<p>This website is using a security service to protect itself from online attacks.</p>
</div>


</div>
</div><!-- /.section -->

<div class="cf-error-footer cf-wrapper">
<p>
<span class="cf-footer-item">Cloudflare Ray ID: <strong>5371a03a1f24d621</strong></span>
<span class="cf-footer-separator">&bull;</span>
<span class="cf-footer-item"><span>Your IP</span>: 171.235.151.87</span>
<span class="cf-footer-separator">&bull;</span>
<span class="cf-footer-item"><span>Performance &amp; security by</span> <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link" target="_blank">Cloudflare</a></span>

</p>
</div><!-- /.error-footer -->


</div><!-- /#cf-error-details -->
</div><!-- /#cf-wrapper -->

<script type="text/javascript">
window._cf_translation = {};


</script>

</body>
</html>

如您所见,此输出与上一个不同。非常感谢任何帮助。

最佳答案

在您的屏幕截图中,我认为您正在尝试访问 https://www.sneakersnstuff.com/en/auth/view,但在您的代码中,您只能访问 https://www.sneakersnstuff.com/ 也许这就是问题所在?

编辑:

在看到有关 CloudFlare 的评论后,也许解决方法是使用 Selenium for python,并尝试绕过 CloudFare 身份验证?这是 documentation

关于python - 从 GET 请求中得到错误的响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57953651/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com