-
if I do a search (on the the search query 'next', I get quite a few id's. All of the id's that begin with 'tt ...' work, but there are some that begin with 'nm ....' that don't return any results at all. These id's work: These id's do not return anything from get_by_id: Otherwise, these calls appear to do what I need for them to do. Jerry |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @wf5w, IDs starting with
>>> from imdbmovies import IMDB
>>> imdb = IMDB()
>>> res = imdb.person_by_name('Rajkummar Rao') #OR imdb.person_by_id("nm3822770")
>>> print(res)
>>> {
"url": "/name/nm3822770/",
"name": "Rajkummar Rao",
"image": "https://m.media-amazon.com/images/M/MV5BMzAxNWIzOWItMDM1NC00NGMyLWIwMDEtNWZjODEyOTFiZjQ4XkEyXkFqcGdeQXVyNjY1MTg4Mzc@._V1_.jpg",
"jobTitle": "Actor",
"description": "Raj Kumar is also known as Rajkummar Rao. He was born in Gurgaon. He finished his schooling in Gurgaon and graduated in Arts from Delhi University. He was simultaneously doing theatre with Kshitij Repertory and SRC in Delhi. He is an Acting graduate from Pune's Film and Television Institute of India. Raj Kumar's debut film was Dibakar Banerjee's ...",
"birthDate": "1984-08-31",
"type": "Person"
}
>>> |
Beta Was this translation helpful? Give feedback.
Hello @wf5w,
IDs starting with
tt
are formovies/series/episodes
, and IDs starting withnm
are forpersons
.get_by_id
is formovies/series/espisodes
. You should useperson_by_id
for IDs starting withnm
: