上传文件至 /
This commit is contained in:
10
260331 23覃浈霓.py
Normal file
10
260331 23覃浈霓.py
Normal file
@@ -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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user