Install Python command line client
1pipx install internetarchiveUse Python client to download torrent files from given collection
Ensure “Automatically add torrents from” > Monitored Folder is set to /mnt/torrent_files and the Override save path is Default save path.
Get itemlist from collection
1ia search --itemlist "collection:bbsmagazine" | tee bbsmagazine.txtDownload torrent files from each item using parallel
1cat bbsmagazine.txt | parallel 'ia download --format "Archive BitTorrent" --destdir=/mnt/torrent_files {}'Move .torrent files from their directories to /mnt/torrent_files
1find /mnt/torrent_files -type f -name "*.torrent" -exec mv {} /mnt/torrent_files \;Note: .torrent files will be removed from
/mnt/torrent_filesby qBittorrent once they are added to the instance.
Remove empty directories
1find /mnt/torrent_files -maxdepth 1 -mindepth 1 -type d -delete