Code Monkey home page Code Monkey logo

fa-scrapper's Introduction

filmAffinity to Letterboxd

(Versión en español)

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.

Getting your IDs

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.

How to get your user id

Go to your profile page and copy the user_id field from the URL:

filmaffinity.com/es/userratings.php?user_id=XXXXXX

How to get your list id

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

Running the script

Locally

You need to have Python 3, BeautifulSoup 4, requests and lxml installed. Once installed, run:

./faScrap.py [--csv FILE] [--lang LANG] id

With Docker

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`

Options

  • --list LIST sets ID of the public list you want to export
  • --csv FILE sets CSV export file name to FILE
  • --lang LANG sets language to LANG. Letterboxd importer works best in English, the default option.

Troubleshooting

  • 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 running locale -a in your terminal.

fa-scrapper's People

Contributors

mx-psi avatar deepsourcebot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.