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
,beautifulsoup4
andunidecode
libraries:$ pip3 install requests beautifulsoup4 unidecode
-
Download
imdb_backup.py
from the repo.
-
Copy your IMDb
at-main
,ubid-main
anduu
cookies 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-main
anduu
, double click on their cells in the "Value" column and copy them.
-
Create a new file
imdb_cookie.json
in 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 --nopause
in the command line
- Script (
imdb_backup.py
):- double click on the file
- or type
python imdb_backup.py --nopause
in the command line
- Executable (
-
After the tool has finished running,
imdb_exported_lists.zip
should appear in your working directory.
$ pyinstaller --onefile imdb_backup.py