Generates CSV file compatible with Letterboxd diary importer from FilmAffinity user's data given their ID.
This program is intended for personal use only; please ensure the person you are getting the data from consents to it beforehand and check which privacy and data protection regulations might apply before using the program to get data from other people.
In order to get your FilmAffinity data you need to find out what your FilmAffinity ID is. There are different IDs for your user ratings and your lists.
Go to your profile page and copy the user_id
field from the URL:
filmaffinity.com/es/userratings.php?user_id=
XXXXXX
Go to the list pages (in the left menu), and access the list you want (it needs to be public).
You need to copy the list_id
field from the URL:
filmaffinity.com/es/mylist.php?list_id=
XXXXXX
You need to have Python 3, BeautifulSoup 4, requests and lxml installed. Once installed, run:
./faScrap.py [--csv FILE] [--lang LANG] id
You need to install Docker. Once installed, run:
docker run --name fa-letterboxd fa-letterboxd python3 faScrap.py id
docker cp fa-letterboxd:/*.csv .
docker rm fa-letterboxd`
--list LIST
sets ID of the public list you want to export--csv FILE
sets CSV export file name toFILE
--lang LANG
sets language toLANG
. Letterboxd importer works best in English, the default option.
Could not set locale
: The script attempts to guess your locale setting given your platform. If it fails to do so you need to provide it yourself. On Linux you can get available locales by runninglocale -a
in your terminal.