- Import Movies or TVShows IDs from CSV file format into Trakt.tv.
- Export Movies or TVShows IDs from Trakt.tv list into CSV file format.
- Create trakt.tv custom list from TDMB discover with filter.
You must use Python 3.x.
Ensure you are running Python 3
$ python -V
Python 3.5
Install need module dependencies
$ apt-get install python3-dateutil python3-simplejson python3-requests python3-openssl jq
Install dependencies with pacman
$ pacman -S python python-dateutil python-simplejson python-requests python-pyopenssl jq
Download the installer: https://www.python.org/downloads/windows/
Ensure you are running Python 3
<python dir>>python.exe -V
Python 3.5
Install need module dependencies
<python dir>\Scripts\pip3.exe install requests simplejson
Download the installer: https://www.python.org/downloads/mac-osx/
Append to PATH in ZSH
$ path=('/Library/Frameworks/Python.framework/Versions/3.8/bin' $path)
Ensure you are running Python 3
$ python3 -V
Python 3.8.5
Run Install Certificates.command
$ pip3 install certifi
Open a new Terminal session so that certificates will be available
Install need module dependencies
$ pip3 install python-dateutil
$ pip3 install simplejson
$ pip3 install requests
$ pip3 install pyopenssl
$ pip3 install jq
-
Create an Trakt.tv application to have your own
client_id
andclient_secret
, https://trakt.tv/oauth/applications. You only need to fill up theName
with aDescription
andRedirect uri
tourn:ietf:wg:oauth:2.0:oob
, leave the rest empty and click onSAVE APP
. -
Run the script to create a default config file
config.ini
$ python export_trakt.py
- Edit the config file
config.ini
and specify theclient_id
andclient_secret
as well as any other settings appropriate to your enviromenent, eg: URL, proxy, etc... Refer toConfiguration details
section for more information.
$ vim config.ini
- Run the script to authenticate against Trakt.tv API using the PIN method and it will generate you an
oauth_token
. You will be prompted to open a link into a browser and paste the pincode back to the script. Make sure you save the generatedoauth_token
into the config fileconfig.ini
for later use.
$ python export_trakt.py
Export data from trakt.tv into CSV
Create trakt.tv list from TDMB discover with filter
Export Movies or TVShows IDs from Kodi into CSV file format. Export data from Kodi
Export Movies IDs from CouchPotato into CSV file format. Export data from CouchPotato
To get support, please create new issue
I'm happy to accept Pull Requests!
This script is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.