Thanks to sidward35 for the code to get the watchlist from Letterboxd.
Taken from this project.
Automatically find and download torrents through a Letterboxd users watchlist using 1337x and qBittorrent, in Python.
The code is not great and it's not meant to be easily extendable. Just a quick hacky codebase to make it more convenient for me to download stuff to my media server.
- qBitTorrent
- Python 3.13.1
- py1337x
- qbittorrent-api
- colorama
- beautifulsoup4
- Clone repository and enter folder:
git clone https://github.com/affeltrucken/MagnetBox; cd MagnetBox- Install requirements:
pip install -r requirements.txt- Make sure you enable Web-UI in qBitTorrent to allow automatic downloads:
- Open qBitTorrent
- Tools
- Options
- Web UI
- Web User Interface (Remote control)
- Change Password (if needed)
-
Edit configuration in magnetbox.py:
Change the default Letterboxd username, save location, and qBitTorrent credentials as needed.
### CONFIGURATION ###
LETTERBOXD_USERNAME = "aldinsmajlovic"
MAX_TORRENT_SIZE_GB = 15.0
QBITTORRENT_HOST = "localhost"
QBITTORRENT_PORT = 8080
QBITTORRENT_USERNAME = "admin"
QBITTORRENT_PASSWORD = "password"
AUTHENTICATION_REQUIRED = False
TORRENT_CATEGORY_NAME = "MagnetBox"
TORRENT_SAVE_PATH = "D:/PLEX/MOVIES"
MAGNET_FILE = "saved_magnets.txt"
ALLOW_DUPLICATE_MAGNETS = False # Set to True to add even if already saved
### END CONFIGURATION ###- Run script:
python magnetbox.pyScript should then get your watchlist, find the best torrent for each movie, and download them through qBitTorrent to the earlier specified save location.
Feel free to add functionality, improve the code, fix bugs, etc.
