headers请求头转字典
xx = """User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0 Accept: applicatasdon Accept-Language: zh-CN,zh;qasda.5,en-US;q=0.3,en;q=0.2 Accept-Encoding: gzip, ads br Content-type: applicatiasdoded ua: 222!HZCKxMPrdasdW5hZg2et+HwIed/MLQwFpBecUz5gtJZ3RNzn2iGkWqdhmx1i9fM0ldJkwXrlV2l1araUUu6Jj88kZSc6YJvBie1g2C6xjHiXBP0xw163igyJMjdGgrkxc3GnEx1/c5r/FHTMSOQoNHkQOb9qlyEPZmwOy2eM5VkpuW5tdJ0LQwnfC5dOVM9UNhJsU+70kkezn2uFr+2PJ4wMBl1YFyW4BalzyzcKw0JFkmsI5ypQzA+ZABXeYqBXhLyxu8260UoTfRNIeHt4tyWYpmswSCo0rBTJm9bE3RZ4BkJ8jS4JBBm9uxvZ6kvEU3SkLErFtJ8t6CxqEzrZ2BScNYOYAcgYJmTzt9raligKnDdM8OElGMnKRRyFdYrZADSkjj6FJx25Gh2cGoE225nhqzE50ogBLTnBrVB1LBJWA0OUpTr/pBnhVYOYx9gK2huwTS8+/KjKXfikhrto3K6FSGQVYQEMlne1SuoSFabnB4TuIQbABsWgpYUpR07DGtbEtKjtSm1uC4MsVJN7/1yHQEN9hnjSjEZtYP0Ztkef7yAfi13nE7N778FxdUmbiu7mRcPOyeMEy1uMcuKmlEBXsvDeGFUuOTp/cfE/QsjsKiad+8ObpewRiGrzZUZXokuG6GUSs/zOWD1odAe+sAVqXQ93+Xwqu6NuVII9vGK9vZQh5rO2XOUTjc4XE/2V4TQRjgdB+1tosGLadET3exaF8R6h9Tjawki1pmgNTF2NwfSTB2NDOuNnYPiWvMsFc6dbttCXb5O/R8LZRy/XSNxjeU4BNixvbw20LJSL5oVx1TTqTCARfEGBQNyYlblstJNGh3m7hSjgbdE9zj4YO7qPP2b1cxYjBfbw9Oyc/0iTz56Voc7/JLHRCVh4d0FNsnb+RjR9Q3bvs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byRB4+l/BH6PCMQUEaW+oER2AjaO5sg+att7DeXs78OtbRjFdF/FCspCx0ZZTF3FWElcfAu28oR4w4A528IMXzM x-umidToken: G90BA95BC4asdsadC5CCA788E0837BE6""" headers = dict([line.split(": ",1) for line in xx.split("\n")]) print(headers)