简体   繁体   English

如何获得一些电影的照片?

[英]How to get some pictures of a movie?

I am trying to get some pictures of a movie.我正在尝试获取一些电影的照片。 I am currently using imdb module (Python: IMDbpy).我目前正在使用 imdb 模块(Python:IMDbpy)。 I don't know how to get these images with the name of the movie or its IMDB id.我不知道如何使用电影名称或其 IMDB id 获取这些图像。

Have you tried this to check what info you can get on a movie based on its id ?你有没有试过这个来检查你可以根据电影的 id 获得什么信息?

from imdb import Cinemagoer
imdb = Cinemagoer()

movie = imdb.get_movie('000000')

print(sorted(movie.keys()))

If you do如果你这样做

mv[0].keys()

You will get every information that is available.您将获得所有可用的信息。 For instance例如

ia.get_movie('0133093').keys()

gives you 66 possible information.为您提供 66 种可能的信息。 https://imdbpy.readthedocs.io/en/latest/usage/s3.html Based on the docs and the IMDb database I'm not sure you can get pictures... https://imdbpy.readthedocs.io/en/latest/usage/s3.html基于文档和 IMDb 数据库,我不确定您是否可以获取图片...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM