DEV Community

Discussion on: Building a Random Movie Picker Using Python and Selenium

Collapse
 
izidro2928 profile image
Isidro Gonzalez

Nice bro I am trying to make a website where when the user insert the movie id (TMDB) it gets the data from that specific movie and then the form auto completes then the user can have the option to ssve and publish that movie. what I want is to create a data importer or autopilot for movies. Any idea? Thank you.

Collapse
 
codybontecou profile image
Cody Bontecou

Hey. If I'm understanding you correctly, you need to pass IMDB a movie ID and have them return all of the information necessary to auto-fill the forms within your app?

I'm pretty sure that's what they example solves within their documentation: imdbpy.readthedocs.io/en/latest/in...

from imdb import IMDb

# create an instance of the IMDb class
ia = IMDb()

# get a movie
movie = ia.get_movie(MOVIE_ID_HERE)
Enter fullscreen mode Exit fullscreen mode

Replace MOVIE_ID_HERE with the movie ID you are working with.