From 1412f0810a4883572426b224539fd2c4cc749d83 Mon Sep 17 00:00:00 2001 From: mxfqc3yh7 <1306884653@qq.com> Date: Wed, 17 Apr 2024 11:22:19 +0800 Subject: [PATCH] ADD file via upload --- 12.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 12.py diff --git a/12.py b/12.py new file mode 100644 index 0000000..3798bf4 --- /dev/null +++ b/12.py @@ -0,0 +1,10 @@ +import csv +import requests +h={ +"User-Agent": +"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"} +response=requests.get("https://www.douban.com/",headers=h) +# response=requests.get("https://tieba.baidu.com/f?kw=%E5%AD%A6%E4%B9%A0%E5%BC%BA%E5%9B%BD&ie=utf-8&pn=50") +print(response.text) +print(response.status_code) +print(response.encoding) \ No newline at end of file