From 95c7da06ce7d1af173491ebe78c0210a032f33b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A6=83=E6=B5=88=E9=9C=93?= <2509165023@student.example.com> Date: Thu, 2 Apr 2026 16:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 260402 23覃浈霓.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 260402 23覃浈霓.py diff --git a/260402 23覃浈霓.py b/260402 23覃浈霓.py new file mode 100644 index 0000000..261b919 --- /dev/null +++ b/260402 23覃浈霓.py @@ -0,0 +1,10 @@ +pip install requests beautifulsoup4 pandas +import bs4 import BeautifulSoup +import csv +import json + +def craw_douban_top250(): + base_url = "https://movie.douban.com/top250" + headers = { + "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebkit/537.36 ( KHTML,like Gecko) Chrom/120.0.0.0 Safari/537.36" + } \ No newline at end of file