Hi Ann Laura,
sure, it should be easy (but it could take some time for 7k persons).
In short, when you are iterating over the cast list using the "person" variable
you have an instance of the Person class.
Since it was create with just the information available in the episode page,
it contains very little data (name, imdbID and maybe their role and notes).
Fortunately, you can easily update a Person instance with the the
missing information;
to do so you have to use the "update" method of the IMDb instance you
have created
at the beginning of your script (in the above example, the "api" variable).
Something like that should be close to what you need:
for ep in episodes:
api.update(ep, ['main'])
cast = ep.get('cast', [])
for person in cast:
api.update(person)
for movie in person.get('filmography', []):
...your code that uses the "movie" object here...
In the same way if you now need more information about the "movie" object
you can just call api.update(movie), but beware that it will also do a lot of
queries to the IMDb servers, and so it will be really slow.
For more information about the available data sets, see
https://imdbpy.readthedocs.io/en/latest/usage/data-interface.html
Bye,
On Mon, Apr 12, 2021 at 5:12 PM Ann Laura Walker
> To view this discussion on the web visit
https://groups.google.com/d/msgid/imdbpy-users/CA%2BSsSx5nEsH13S%3Dj4o3HvmqmDQeo-h4byGc4pKvdB-k4ZhmMqQ%40mail.gmail.com.