DEV Community

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

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.