当前位置: 首页 > 知识库问答 >
问题:

macos - 为啥 同样代码 pycharm 运行的结果和 Mac zsh 运行的结构不一样呢?

尉迟鑫鹏
2023-05-12
import requests

cookies = {
    'PSTM': '1659423424',
    'BIDUPSID': 'F81758725A6FD237021151650C33776D',
    'H_WISE_SIDS': '110085_179347_180636_188747_204918_205168_209305_209568_211986_212295_212740_213035_213349_214797_215730_216843_216941_219411_219565_219624_219943_219946_220017_220663_221440_221679_222298_222396_222624_223064_223202_223211_224045_224047_224077_224156_224457_224573_224633_225860_226088_226548_226627_226815_226946_226955_227006_227151_227514_227528_227732_227932_227969_228132_228370_228870_229061_229154_229240_229364_229381_229685_229694_229914_229966_230184_230393_230665_230925_230930_231175_231434_231466_231653_231721_231754_231765_231836_231906_231921_231979_232254_232299_232473_232678_232686_232719_232781_232818_232905_232927_233006_233073_233082_233117_233216_233503_233531_233587_233590_233602',
    'MCITY': '-%3A',
    'BD_UPN': '123253',
    'H_WISE_SIDS_BFESS': '110085_179347_180636_188747_204918_205168_209305_209568_211986_212295_212740_213035_213349_214797_215730_216843_216941_219411_219565_219624_219943_219946_220017_220663_221440_221679_222298_222396_222624_223064_223202_223211_224045_224047_224077_224156_224457_224573_224633_225860_226088_226548_226627_226815_226946_226955_227006_227151_227514_227528_227732_227932_227969_228132_228370_228870_229061_229154_229240_229364_229381_229685_229694_229914_229966_230184_230393_230665_230925_230930_231175_231434_231466_231653_231721_231754_231765_231836_231906_231921_231979_232254_232299_232473_232678_232686_232719_232781_232818_232905_232927_233006_233073_233082_233117_233216_233503_233531_233587_233590_233602',
    'BDUSS': 'kc4UG9QQkhqSnBRanE3aVdEMXhsUWRNbmFMSldud3ZUeW1IUWJBcWotUlVEUVJrRVFBQUFBJCQAAAAAAAAAAAEAAAAlsZAFTXVzaWNBbmdlbDg5MjEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFSA3GNUgNxjT',
    'BDUSS_BFESS': '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TkA5bjZKxtq3mkjbPbDfn028DKuD60bj6bbDNLsbtQb26r-3--8-bTVHRDk5-Qo-4_eqxby26nB-Tn9aJ5nJDoTjfKx54Tt0PQX5Pck3q3d55nEKMovQpP-HJ753J8MKUc-2hCDtRQPX5kJKl0MLnQWbb0xynoD5-4VLfnMBMPjamOnaPLE3fAKftnOM46JehL3346-35543bRTLnLy5KJYMDcnK4-XDjjBeHQP',
    'BAIDUID_BFESS': '762DAD1A89323A1CCDD389A350215EB5:FG=1',
    'delPer': '0',
    'BD_CK_SAM': '1',
    'PSINO': '1',
    'ZFY': 'XDzW5xgD4GDw6X7iOz:B59TWtUoZRFHgvR7mWFlMtpL8:C',
    'ariaDefaultTheme': 'undefined',
    'BAIDU_WISE_UID': 'wapp_1683736513656_833',
    '__bid_n': '187f1afd106183b9644207',
    'BA_HECTOR': 'a52g01012100a18l002k2h161i5nhu21m',
    'FPTOKEN': '6Woc6ieZC1o0QC4n9p3pIrYWHjPJ9FUlvjQ+1m8u2RLpWSmRzN1MFN7InJPSc0L3Pzh28VQbEj12Cc3mw1+zuDXfDCqlSoq5iWiwnTtpSvUbQdXbo9P46io/Mg9ZCMu5cg44vp1qtwzYoRVe8+NhmpNztsPNSx0RqRu2h+hKJ8ynCVW/HvBRpeUTvHh/zrxxUndGvqpi4NN1Rrxeb0Pb5nbbZ0swX1Xfi3fYqH8qbLW+ULuH5fzAO1RCmifN6LKgBB5SXyoQ3a+7NhtWfQBdMcwSIJCJNbPFlopsT1oeRXzXNGzU/rMtzwLdRWVY4NMSzrtMkfADpH++ezXi5cshNbKlFN7DZAWfCt4BjmkBmMYjCptYwaI8ZZyWpf2X1nzuV9Aw2csnujApOwEq4qs/QA==|qA6l3eamB2uwDfZTYUIIHhtFGb8ZElYpFSa+zpW4bmM=|10|f2df50a34bb9074fecd0cd90532672f9',
    'ab_sr': '1.0.1_OGI1MTkzNWFlMGEwMzJlNDNiY2M0NzIxYmY2MzE4MTE3YjE2OGVjYTczY2IzZDRkZTdlNmQ0ZDE0OGQ5NTgwNjU3ZTQwMTNjOGFlZWE0MmFiNDU4ODBjNWMwYjMwN2VjMWNiNGYyMTc5MGZhNjliZWJiMDlmOGQwOWVhN2U1Y2ZjYjk1NTgxNTU0ZmZlM2I5ODc5YWZlZWU4ZmM3NzE1OTZkOTgwZTZjMTc3NTU2ZjRiZGFmNDEzNTg0MGUyMjUw',
    'arialoadData': 'false',
    'RT': '"z=1&dm=baidu.com&si=d24b6862-0a13-449c-a3fa-178b1a3907d7&ss=lhhx5jkk&sl=q&tt=5h9&bcn=https%3A%2F%2Ffclog.baidu.com%2Flog%2Fweirwood%3Ftype%3Dperf&ld=3hxc&ul=3k54&hd=3k5r"',
    'COOKIE_SESSION': '585_0_9_9_180_18_1_0_9_9_1_9_634_0_52_0_1683737205_0_1683737153%7C9%23168830_282_1683565477%7C9',
    'H_PS_645EC': '7337qTb4F5mKBvipFut3tfqN6H%2Br20iYH11gMpWTeheyqDz1V4rKLKlEhVOATjgC959j',
    'channel': 'baidusearch',
    'baikeVisitId': '5cb0271d-6922-4816-93c7-c9bcd0b48ef2',
    'BDRCVFR[C0p6oIjvx-c]': 'ddONZc2bo5mfAF9pywdpAqVuNqsus',
    'BDSVRTM': '837',
    'H_PS_PSSID': '38515_36544_38529_38470_38468_38592_38596_38581_38485_38599_38543',
}

headers = {
    'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'Accept-Language': 'en-US,en;q=0.9',
    'Cache-Control': 'max-age=0',
    'Connection': 'keep-alive',
    # 'Cookie': 'PSTM=1659423424; BIDUPSID=F81758725A6FD237021151650C33776D; H_WISE_SIDS=110085_179347_180636_188747_204918_205168_209305_209568_211986_212295_212740_213035_213349_214797_215730_216843_216941_219411_219565_219624_219943_219946_220017_220663_221440_221679_222298_222396_222624_223064_223202_223211_224045_224047_224077_224156_224457_224573_224633_225860_226088_226548_226627_226815_226946_226955_227006_227151_227514_227528_227732_227932_227969_228132_228370_228870_229061_229154_229240_229364_229381_229685_229694_229914_229966_230184_230393_230665_230925_230930_231175_231434_231466_231653_231721_231754_231765_231836_231906_231921_231979_232254_232299_232473_232678_232686_232719_232781_232818_232905_232927_233006_233073_233082_233117_233216_233503_233531_233587_233590_233602; MCITY=-%3A; BD_UPN=123253; H_WISE_SIDS_BFESS=110085_179347_180636_188747_204918_205168_209305_209568_211986_212295_212740_213035_213349_214797_215730_216843_216941_219411_219565_219624_219943_219946_220017_220663_221440_221679_222298_222396_222624_223064_223202_223211_224045_224047_224077_224156_224457_224573_224633_225860_226088_226548_226627_226815_226946_226955_227006_227151_227514_227528_227732_227932_227969_228132_228370_228870_229061_229154_229240_229364_229381_229685_229694_229914_229966_230184_230393_230665_230925_230930_231175_231434_231466_231653_231721_231754_231765_231836_231906_231921_231979_232254_232299_232473_232678_232686_232719_232781_232818_232905_232927_233006_233073_233082_233117_233216_233503_233531_233587_233590_233602; BDUSS=kc4UG9QQkhqSnBRanE3aVdEMXhsUWRNbmFMSldud3ZUeW1IUWJBcWotUlVEUVJrRVFBQUFBJCQAAAAAAAAAAAEAAAAlsZAFTXVzaWNBbmdlbDg5MjEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFSA3GNUgNxjT; BDUSS_BFESS=kc4UG9QQkhqSnBRanE3aVdEMXhsUWRNbmFMSldud3ZUeW1IUWJBcWotUlVEUVJrRVFBQUFBJCQAAAAAAAAAAAEAAAAlsZAFTXVzaWNBbmdlbDg5MjEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFSA3GNUgNxjT; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BAIDUID=762DAD1A89323A1CCDD389A350215EB5:FG=1; BDSFRCVID=jptOJeC62CiU0vnfSe2wMYBT_gtzGROTH6aoWUt4sI9xz15uU_w4EG0Pf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AIDU_WISE_UID=wapp_1683736513656_833; __bid_n=187f1afd106183b9644207; BA_HECTOR=a52g01012100a18l002k2h161i5nhu21m; FPTOKEN=6Woc6ieZC1o0QC4n9p3pIrYWHjPJ9FUlvjQ+1m8u2RLpWSmRzN1MFN7InJPSc0L3Pzh28VQbEj12Cc3mw1+zuDXfDCqlSoq5iWiwnTtpSvUbQdXbo9P46io/Mg9ZCMu5cg44vp1qtwzYoRVe8+NhmpNztsPNSx0RqRu2h+hKJ8ynCVW/HvBRpeUTvHh/zrxxUndGvqpi4NN1Rrxeb0Pb5nbbZ0swX1Xfi3fYqH8qbLW+ULuH5fzAO1RCmifN6LKgBB5SXyoQ3a+7NhtWfQBdMcwSIJCJNbPFlopsT1oeRXzXNGzU/rMtzwLdRWVY4NMSzrtMkfADpH++ezXi5cshNbKlFN7DZAWfCt4BjmkBmMYjCptYwaI8ZZyWpf2X1nzuV9Aw2csnujApOwEq4qs/QA==|qA6l3eamB2uwDfZTYUIIHhtFGb8ZElYpFSa+zpW4bmM=|10|f2df50a34bb9074fecd0cd90532672f9; ab_sr=1.0.1_OGI1MTkzNWFlMGEwMzJlNDNiY2M0NzIxYmY2MzE4MTE3YjE2OGVjYTczY2IzZDRkZTdlNmQ0ZDE0OGQ5NTgwNjU3ZTQwMTNjOGFlZWE0MmFiNDU4ODBjNWMwYjMwN2VjMWNiNGYyMTc5MGZhNjliZWJiMDlmOGQwOWVhN2U1Y2ZjYjk1NTgxNTU0ZmZlM2I5ODc5YWZlZWU4ZmM3NzE1OTZkOTgwZTZjMTc3NTU2ZjRiZGFmNDEzNTg0MGUyMjUw; arialoadData=false; RT="z=1&dm=baidu.com&si=d24b6862-0a13-449c-a3fa-178b1a3907d7&ss=lhhx5jkk&sl=q&tt=5h9&bcn=https%3A%2F%2Ffclog.baidu.com%2Flog%2Fweirwood%3Ftype%3Dperf&ld=3hxc&ul=3k54&hd=3k5r"; COOKIE_SESSION=585_0_9_9_180_18_1_0_9_9_1_9_634_0_52_0_1683737205_0_1683737153%7C9%23168830_282_1683565477%7C9; H_PS_645EC=7337qTb4F5mKBvipFut3tfqN6H%2Br20iYH11gMpWTeheyqDz1V4rKLKlEhVOATjgC959j; channel=baidusearch; baikeVisitId=5cb0271d-6922-4816-93c7-c9bcd0b48ef2; BDRCVFR[C0p6oIjvx-c]=ddONZc2bo5mfAF9pywdpAqVuNqsus; BDSVRTM=837; H_PS_PSSID=38515_36544_38529_38470_38468_38592_38596_38581_38485_38599_38543',
    'Referer': 'https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&rsv_idx=2&tn=baiduhome_pg&wd=%E7%BE%8E%E5%9B%A2&oq=%25E7%25BE%258E%25E5%259B%25A2%25E5%25A4%2596%25E5%258D%2596%25E5%25B0%258F%25E7%25A8%258B%25E5%25BA%258F%25E9%2580%2586%25E5%2590%2591&rsv_pq=923cadf700100219&rsv_t=a2fcuIij3PrcPppb3%2F1rtttDDe%2BSU9IKFWSkXVsLPxcNWnHENI93xWcqiljUuj08AJE%2F&rqlang=cn&rsv_enter=1&rsv_dl=tb&rsv_btype=t&inputT=2947&rsv_sug3=50&rsv_sug1=35&rsv_sug7=100&rsv_sug2=0&rsv_sug4=4198&rsv_sug=1',
    'Sec-Fetch-Dest': 'document',
    'Sec-Fetch-Mode': 'navigate',
    'Sec-Fetch-Site': 'same-origin',
    'Sec-Fetch-User': '?1',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36',
    'sec-ch-ua': '"Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"macOS"',
}

params = {
    'rtt': '1',
    'bsst': '1',
    'cl': '2',
    'tn': 'news',
    'ie': 'utf-8',
    'word': '美团',
}

response = requests.get('https://www.baidu.com/s', params=params, cookies=cookies, headers=headers)

在Mac Zsh 错误的返回结果

head>
    <meta charset="utf-8">
    <title>百度安全验证</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no, email=no">
    <link rel="shortcut icon" href="https://www.baidu.com/favicon.ico" type="image/x-icon">
    <link rel="icon" sizes="any" mask href="https://www.baidu.com/img/baidu.svg">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <link rel="stylesheet" href="https://ppui-static-wap.cdn.bcebos.com/static/touch/css/api/mkdjump_aac6df1.css" />
</head>
<body>
    <div class="timeout hide-callback">
        <div class="timeout-img"></div>
        <div class="timeout-title">网络不给力,请稍后重试</div>
        <button type="button" class="timeout-button">返回首页</button>
    </div>
    <div class="timeout-feedback hide-callback">
        <div class="timeout-feedback-icon"></div>
        <p class="timeout-feedback-title">问题反馈</p>
    </div>

<script src="https://ppui-static-wap.cdn.bcebos.com/static/touch/js/mkdjump_v2_21d1ae1.js"></script>
</body>
</html>

在pycharm 里面运行不会报错

共有1个答案

佴英奕
2023-05-12

这明显就是百度监测到你访问异常,然后返回的百度安全验证页面

image.png


另外:像cookies这种敏感信息不建议公开唉,比如你的百度账号 MusicAngel8921

 类似资料:
  • 在写 OTP input 组件时,发现 input 宽度为 0 时,Android 输入内容方向异常,下面是异常代码和操作步骤: 点击“开始输入”按钮后,键盘输入内容,iOS 系统下表现正常,Android 输入方向则是从右向左。 影响结果代码为 style="width: 0;",如果宽设置成非0,输入方向则正常。 是 Android 处理机制不同还是 BUG?

  • 本文向大家介绍pycharm运行和调试不显示结果的解决方法,包括了pycharm运行和调试不显示结果的解决方法的使用技巧和注意事项,需要的朋友参考一下 刚在虚拟机里面安装了pycharm,配置(setting)完后,新建一个py文件,键入"hello world",竟然没有结果,虽然运行成功。pycharm太不友好了吧! 然后开始找问题: 1:有人说是文件名的问题,这个可能有,但是我没有改,我觉得

  • 下面是我的gulpfile。我正在尝试从scss生成缩小的css,然后使用gulp-rev重命名它。运行gulp Clean:资产然后gulp scss,然后gulp css工作完美。但运行gulp build并不能完成这项任务。缩小的css存储在./assets/css中,但重命名的css没有存储在./public/assets中

  • 在我的Java Swing应用程序中,我有一些JTextAreas,我意识到文本在从Netbeans运行时看起来不同,而当应用程序从Jar文件运行时,为什么?如何使它们看起来一样? 在下图中,上部来自使用Netbean运行的应用程序,下部是从Jar文件运行时的外观:

  • 我有自己的方法。net项目来加密密码 我的任务是将此方法转换为java,但在java中,我没有得到与该方法相同的结果。网络版 我的java代码是 加密“1”的结果是: 而java是 你能帮我解决这个问题吗?

  • 我为Aeron的演示做了一些基准测试,但我发现,如果我对相同的传输使用不同的工具,我得到的结果略有不同。 例如,如果我使用HDR直方图,我得到的结果与维护人员在测试中得到的数字一致: 我的代码https://github.com/easy-logic/transport-benchmarks/blob/master/aeron-ping/src/main/java/io/easylogic/ben