import requests
url = "https://movie.douban.com/j/chart/top_list"
headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36"}
params = {"type":"24",
"interval_id":"100:90",
"start":"0",
"limit":"10"
}
response = requests.get(url=url,params=params,headers=headers)
json_data = response.json()
for movie in json_data:
print("名次:",movie["rank"])
print("电影名称:",movie["title"])
print("评分:",movie["score"])
str = ""
for city in list(movie["regions"]):
str+=city+" "
print("国家:",str)
print("="*20)
豆瓣榜单
最新推荐文章于 2024-08-19 13:32:52 发布