from imdb import IMDb
ia = IMDb()
matrix = ia.get_movie('0133093')
ia.update(matrix, 'external sites')
print(matrix.get('video clips and trailers'))
Not sure if that's what you mean with "video clips".
The movie pictures are trailers are not available, right now; a parser
can be written, but not
so easily since they are paginated.
As always, any help is welcome.
On Sat, Dec 12, 2020 at 9:39 AM Degenerate Tech <sksah...@gmail.com> wrote:
>
> how to get video clips or trailer of any movie?
>
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to imdbpy-users
okkk... ..a=imdbobj.get_movie(x) this line takes lots of time ...
very slow running .
imdbobj=imdb.IMDb()
m=imdbobj.get_top250_movies()
for j in range(len(m)):
print(m[j])
x=m[j].movieID
a=imdbobj.get_movie(x)
print(j,'################',a)
Degenerate Tech
unread,
Dec 12, 2020, 12:36:26 PM12/12/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to imdbpy-users
from imdb import IMDb
ia = IMDb()
top250Movies = ia.get_top250_movies()
for i in top250Movies:
a=i.items()
print(i,a)
###data from above code is enough for my work but ..i want cover image of movie...its it possible using above code ?
. i dont want to use .a=imdbobj.get_movie(x) because it takes large time
On Saturday, December 12, 2020 at 9:11:43 PM UTC+5:30 davide....@gmail.com wrote:
Davide Alberani
unread,
Dec 20, 2020, 4:12:44 AM12/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to imdbpy...@googlegroups.com
Hi,
once you have an instance of a Movie object you can call the .keys() method to
get the current list of available information. If what you need is
not already present
in the results, you will need to update the object to fetch the info you need.