This is a project for retrieving information from an Overseerr instance using their API.
Run the following to install:
pip install pyoverseerr
Note: You have to supply an api_key
to successfully authenticate.
import pyoverseerr
overseerr = pyoverseerr.Overseerr(
ssl=True,
host="192.168.1.120",
port="5000",
urlbase="overseerr/",
api_key="pixf64thuh2m7kbwwgkqp52yznbj4oyo"
)
overseerr.authenticate()
try:
overseerr.test_connection()
except pyoverseerr.OverseerrError as e:
print(e)
return
movies = overseerr.movie_requests
tv = overseerr.tv_requests
music = overseerr.music_requests
total = overseerr.total_requests
movie_search = overseerr.search_movie("Movie Name")
tv_search = overseerr.search_tv("TV show name")
overseerr.request_movie("theMovieDbId")
overseerr.request_tv("theTvDbId", request_latest=True)
This project is licensed under the MIT License - see the LICENSE.txt file for details.