A simple tool to backup all your lists from IMDb including your watchlist and ratings. Creates a .zip archive with .csv files exported from the site. To prevent filesystem errors all personal lists are renamed to ls0XXXXXXXX_latinized-list-name.csv, but all original list titles (including multiline ones) are preserved in titles.txt in the same archive.
The easiest way to run this tool on Windows is to download a portable executable from the Releases tab. The executable is created with PyInstaller but is not an installer.
Otherwise you can run it from the source code:
-
Make sure you have Python 3.12+ installed:
$ python --version Python 3.12
-
Install
requests,beautifulsoup4andunidecodelibraries:$ pip3 install requests beautifulsoup4 unidecode -
Download
imdb_backup.pyfrom the repo.
-
Copy your IMDb
at-main,ubid-mainanduucookies from your browser:- Open any page on IMDb.
- Open Developer tools in your browser:
- Expand "Cookies" in the left panel and select
http://www.imdb.com. - Find rows named
at-main,ubid-mainanduu, double click on their cells in the "Value" column and copy them.
-
Create a new file
imdb_cookie.jsonin the script directory and paste the following data into it, replacing ellipses with your cookies from the previous step:{ "at-main": "...", "ubid-main": "...", "uu": "..." } -
Use any of the following steps to run the tool (depending on which file you've downloaded):
- Executable (
imdb_backup.exe):- double click on the file
- or type
imdb_backup.exe --nopausein the command line
- Script (
imdb_backup.py):- double click on the file
- or type
python imdb_backup.py --nopausein the command line
- Executable (
-
After the tool has finished running,
imdb_exported_lists.zipshould appear in your working directory.
$ pyinstaller --onefile imdb_backup.py

