From d0c25e91135db792cdabad0a80bd2c743e9179b0 Mon Sep 17 00:00:00 2001 From: mxfqc3yh7 <1306884653@qq.com> Date: Wed, 17 Apr 2024 11:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=B4=E4=BF=A1=E6=81=AF=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 12.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/12.py b/12.py index 3798bf4..4fa11e2 100644 --- a/12.py +++ b/12.py @@ -1,10 +1,11 @@ -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 +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) +print(response.request) \ No newline at end of file