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
and unidecode
libraries:
$ pip3 install requests beautifulsoup4 unidecode
Download imdb_backup.py
from the repo.
Copy your IMDb at-main
, ubid-main
and uu
cookies from your browser:
http://www.imdb.com
.at-main
, ubid-main
and uu
, 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):
imdb_backup.exe
):
imdb_backup.exe --nopause
in the command lineimdb_backup.py
):
python imdb_backup.py --nopause
in the command lineAfter the tool has finished running, imdb_exported_lists.zip
should appear in your working directory.
$ pyinstaller --onefile imdb_backup.py