An automated Python script that connects to your Plex Media Server and extracts all media posters
- Python 3.8 or higher
- Network access to your Plex Media Server
- Your personal Plex Authentication Token
-
Log in to your Plex Web App on a browser.
-
Select any media item (movie, episode, or show) in your library.
-
Click the three dots (...) menu on the media details page to open context options.
-
Select Get Info.
-
Click View XML in the bottom left corner of the pop-up window.
-
A new browser tab opening the XML document will appear. Look at the URL bar of this new tab.
-
Locate
X-Plex-Token=at the very end of the URL string. The characters following it are your token string.Example:
https://...&X-Plex-Token=YOUR_TOKEN_HERE
-
Clone or download this repository. Open your terminal or command prompt and run the following command to download the project to your local machine:
git clone https://github.com/sneseric/plex-poster-extractor.git -
Enter the project directory
cd clanker-eric -
Create a
.envfile in the root directory next toextract_posters.py:PLEX_TOKEN=your_plex_token_here PLEX_URL=http://localhost:32400
(Note: PLEX_URL is optional. If omitted, it defaults to http://localhost:32400)
pip install -r requirements.txtRun the main application script from your terminal:
python extract_posters.pyWhen prompted: Extract all posters from Plex Server now? (y/n) input y to execute or exit to close. All media posters will save in ./posters_extracted/ following the naming standard:
Movies: {Library}{Movie Name}.jpg TV Shows: {Library}{Show Name}S{Season}E{Episode}{Episode Title}.jpg