Python 3.x 试图从TMDB获取系列的背景

Python 3.x 试图从TMDB获取系列的背景,python-3.x,themoviedb-api,Python 3.x,Themoviedb Api,我有一个项目,我必须为一个系列的每一季下载一个不同的背景(广域图像),我使用TMDB API,我浏览了他们的API文档,使用了我发现的内容,但最终只有一个背景 我的代码 import requests seriesname = 'Clarice' seasnnumb = '1' r = requests.get(f'https://api.themoviedb.org/3/search/tv? api_key=apikey&page=1&query={seriesname}')

我有一个项目,我必须为一个系列的每一季下载一个不同的背景(广域图像),我使用TMDB API,我浏览了他们的API文档,使用了我发现的内容,但最终只有一个背景

我的代码

import requests
seriesname = 'Clarice'
seasnnumb = '1'
r = requests.get(f'https://api.themoviedb.org/3/search/tv? 
api_key=apikey&page=1&query={seriesname}')
response = r.json()
result = response.get('results')
print(result)
反应

[{'backdrop_path': '/eSVvx8xys2NuFhl8fevXt41wX7v.jpg',

'first_air_date': '2021-02-11',

'genre_ids': [80, 18],

'id': 103302,

'name': 'Clarice',

'origin_country': ['US'],

'original_language': 'en',

'original_name': 'Clarice',

'overview': 'In 1993, six months after the events of The Silence of the Lambs, FBI Agent Clarice 
 Starling returns to the field to pursue serial murderers and sexual predators while navigating the 
 high stakes political world of Washington, D.C.',

'popularity': 24.836,

'poster_path': '/7OFxU0bBO0HDL4klXmM1ahJPbv8.jpg',

'vote_average': 7.5,

'vote_count': 67}]
我尝试了获取图像的方法,但它只返回海报

将其附加到背景/海报路径。 例如: “背景路径”:“/eSVvx8xys2NuFhl8fevXt41wX7v.jpg”

//这是原始尺寸的

//您还可以指定要获取的图像的大小 比如: 例如: //要获得大小为500px的图像,您可以使用

//这是宽度为500px的尺寸