import tmdbsimple as tmdb
tmdb.API_KEY = 'my api key'
fav = tmdb.Account(session_id = "my session id").favorite_movies()
print(fav)
I get
Traceback (most recent call last):
File "/Users/henryhaustein/Downloads/tmdb2movielens.py", line 5, in <module>
fav = tmdb.Account(session_id = "***").favorite_movies()
File "/usr/local/lib/python3.10/site-packages/tmdbsimple/account.py", line 92, in favorite_movies
path = self._get_id_path('favorite_movies')
File "/usr/local/lib/python3.10/site-packages/tmdbsimple/base.py", line 40, in _get_id_path
return self._get_path(key).format(id=self.id)
AttributeError: 'Account' object has no attribute 'id'
I want to retrieve my favourite movies:
I get
What am I doing wrong?