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