Skip to main content

filmweb-export

Eksport ocen filmów, seriali i gier z serwisu Filmweb.

Instalacja

Pakiet Python

pip install filmweb

# master branch na githubie:
pip install https://github.com/ppatrzyk/filmweb-export/archive/master.zip

Wymaga instalacji Pythona.

Docker

podman run \
    --rm \
    -v ./:/filmweb \
    ghcr.io/ppatrzyk/filmweb-export:v0.14 \
    filmweb <username> <cookie>

Gotowe binarki

Samodzielny plik wykonywalny zbudowany przy użyciu PyInstaller (Linux, MacOS, Windows).

Pobierz z zakładki Releases.

Instrukcja

Dane użytkownika

Istnieje możliwość eksportu własnych ocen lub ocen znajomych - proszę podać nazwę użytkownika jako username. Do dostępu jest potrzebne zalogowanie się na portal i podanie do skryptu wartości cookie dla strony filmweb. Podstawowe użycie:

filmweb <username> <cookie>

Dane o filmach

Ściągnij dane o filmach według ich id (nie wymaga logowania):

filmweb <id>

Ograniczanie obciążenia serwera

Domyślnie program używa tylu równoległych procesów, ile jest dostępnych CPU. Można to ograniczyć opcją --workers:

filmweb --workers 2 <username> <cookie>

Domyślnie pobierane są wszystkie strony z listą ocen (po 100 tytułów na stronę, osobno dla każdego typu). Opcja --pages pozwala pobrać tylko wybrany zakres:

filmweb --pages 2-5 <username> <cookie>   # strony 2-5
filmweb --pages 3 <username> <cookie>     # tylko strona 3
filmweb --pages 4- <username> <cookie>    # od strony 4 do końca

Przyrostowy eksport

Opcja --since YYYY-MM-DD eksportuje tylko tytuły ocenione (lub ze zmienioną oceną) w podanym dniu lub później (dzień włącznie). Lista ocen jest nadal pobierana w całości, ale kosztowne zapytania o informacje i oceny globalne dotyczą wyłącznie wybranych tytułów, więc eksport od ostatniej daty trwa o wiele krócej:

filmweb --since 2026-10-19 <username> <cookie>

Dlaczego lista ocen jest pobierana w całości, a nie tylko do pierwszej starszej oceny? Filmweb zwraca oceny w stałej kolejności (domyślnie od najnowszej dodanej), ale pole timestamp to czas ostatniej zmiany oceny. Gdy zmienisz ocenę starego filmu, jego timestamp jest nowy, a pozycja na liście pozostaje zwykle na dawnym miejscu. Pobieranie od początku i przerwanie na pierwszej starej ocenie pominęłoby takie zmiany. Dodatkowo strony listy są pobierane równolegle, więc kolejność w pliku wynikowym nie jest chronologiczna.

Przykład

Dane użytkownika

$ filmweb -f csv -f json -s 2021-01-01 pieca "didomi_token=(...)=="
INFO:filmweb.main:Fetching list of rated titles [1/3]...
INFO:filmweb.main:Skipping videogame, no ratings found
INFO:filmweb.main:Fetching list of serial ratings (pages 1-1 of 1)...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  2.82it/s]
INFO:filmweb.main:Fetching list of film ratings (pages 1-10 of 10)...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:00<00:00, 15.31it/s]
INFO:filmweb.main:User pieca has 225 rated titles since 2021-01-01...
INFO:filmweb.main:Fetching info about titles [2/3]...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 225/225 [00:12<00:00, 17.53it/s]
INFO:filmweb.main:Fetching global rating for titles [3/3]...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 225/225 [00:10<00:00, 20.82it/s]
INFO:filmweb.writer:Writing data...
INFO:filmweb.writer:pieca_20261112.json written!
INFO:filmweb.writer:pieca_20261112.csv written!
$ cat pieca_20261112.json | jq .[0]
{
  "timestamp": 1743336683045,
  "movie_id": 10074202,
  "user_rating": 6,
  "duration": 57,
  "poster_url": "https://fwcdn.pl/fpo/42/02/10074202/8168022.10.webp",
  "pl_title": "Dojrzewanie",
  "original_title": "Adolescence",
  "year": 2025,
  "title_type": "tv_show",
  "title_sub_type": "serial_tv",
  "plot": "Trzynastolatek zostaje oskarżony o morderstwo koleżanki z klasy. Jego rodzina, terapeutka i prowadzący sprawę detektyw zadają sobie pytanie o to, co naprawdę się stało.",
  "genres": [
    "Dramat",
    "Psychologiczny",
    "Kryminał"
  ],
  "directors": [
    "Philip Barantini"
  ],
  "countries": [
    "GB"
  ],
  "url": "https://www.filmweb.pl/film/Dojrzewanie-2025-10074202",
  "global_rating": 7.69396,
  "global_rating_count": 97248,
  "global_rating_histogram": {
    "1": 460,
    "2": 263,
    "3": 818,
    "4": 1168,
    "5": 3649,
    "6": 8364,
    "7": 21015,
    "8": 35316,
    "9": 19902,
    "10": 6293
  }
}
$ duckdb -box -c "SELECT * FROM read_csv_auto('pieca_20261112.csv') ORDER BY RANDOM() LIMIT 1;"
┌──────────┬──────────┬────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────┬───────────────────┬───────────────────┬──────┬────────────┬────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────────┬──────────────────────┬──────────────┬───────────────┬─────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────┬──────────┬─────────────┐
│ movie_id │ duration │                              url                               │                     poster_url                      │     pl_title      │  original_title   │ year │ title_type │ title_sub_type │                                                                  plot                                                                  │        genres         │      directors       │  countries   │ global_rating │ global_rating_count │                                         global_rating_histogram                                         │   timestamp   │ favorite │ user_rating │
├──────────┼──────────┼────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────┼───────────────────┼───────────────────┼──────┼────────────┼────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────┼──────────────────────┼──────────────┼───────────────┼─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────┼──────────┼─────────────┤
│ 857607   │ 98       │ https://www.filmweb.pl/film/Jak+najdalej+st%C4%85d-2020-857607 │ https://fwcdn.pl/fpo/76/07/857607/7930660_2.10.webp │ Jak najdalej stąd │ Jak najdalej stąd │ 2020 │ movie      │ film_cinema    │ Zbuntowana nastolatka, której ojciec zginął w wypadku na budowie, musi sama pojechać do Irlandii, aby sprowadzić ciało taty do Polski. │ ["Dramat", "Komedia"] │ ["Piotr Domalewski"] │ ["IE", "PL"] │ 6.81045       │ 20564               │ {"1": 36, "2": 34, "3": 131, "4": 324, "5": 1427, "6": 4895, "7": 9006, "8": 3921, "9": 558, "10": 232} │ 1638219848669 │ NULL     │ 8           │
└──────────┴──────────┴────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────┴───────────────────┴───────────────────┴──────┴────────────┴────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────┴──────────────────────┴──────────────┴───────────────┴─────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────┴──────────┴─────────────┘

Dowolne filmy

$ filmweb --stdout details 529 80 | jq
INFO:filmweb.main:Fetching info about titles [1/2]...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00,  6.76it/s]
INFO:filmweb.main:Fetching global rating for titles [2/2]...
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00,  6.86it/s]
INFO:filmweb.parser:Writing data...
[
  {
    "movie_id": 529,
    "duration": 104,
    "poster_url": "https://fwcdn.pl/fpo/05/29/529/8160166.10.webp",
    "pl_title": "Kiler",
    "original_title": "Kiler",
    "year": 1997,
    "title_type": "movie",
    "title_sub_type": "film_cinema",
    "plot": "Jerzy Kiler, warszawski taksówkarz, przypadkowo zostaje wzięty za płatnego zabójcę i umieszczony w areszcie. Wyciąga go stamtąd boss świata przestępczego, który oferuje mu nowe zadanie.",
    "genres": [
      "Komedia",
      "Sensacyjny"
    ],
    "directors": [
      "Juliusz Machulski"
    ],
    "countries": [
      "PL"
    ],
    "url": "https://www.filmweb.pl/film/Kiler-1997-529",
    "global_rating": 7.73682,
    "global_rating_count": 471324,
    "global_rating_histogram": {
      "1": 1832,
      "2": 1426,
      "3": 3551,
      "4": 6894,
      "5": 15654,
      "6": 40939,
      "7": 109851,
      "8": 160761,
      "9": 79472,
      "10": 50944
    }
  },
  {
    "movie_id": 80,
    "duration": 113,
    "poster_url": "https://fwcdn.pl/fpo/00/80/80/8023222_1.10.webp",
    "pl_title": "Kiler-ów 2-óch",
    "original_title": "Kiler-ów 2-óch",
    "year": 1999,
    "title_type": "movie",
    "title_sub_type": "film_cinema",
    "plot": "Jurek Kiler stał się sławną osobą, lecz gangsterzy, których oszukał, planują zemstę.\n",
    "genres": [
      "Komedia",
      "Sensacyjny"
    ],
    "directors": [
      "Juliusz Machulski"
    ],
    "countries": [
      "PL"
    ],
    "url": "https://www.filmweb.pl/film/Kiler-%C3%B3w+2-%C3%B3ch-1999-80",
    "global_rating": 7.2879,
    "global_rating_count": 238399,
    "global_rating_histogram": {
      "1": 990,
      "2": 953,
      "3": 2935,
      "4": 5672,
      "5": 13875,
      "6": 34054,
      "7": 71860,
      "8": 64421,
      "9": 25437,
      "10": 18202
    }
  }
]

Wszystkie opcje

$ filmweb -h
filmweb

Usage:
    filmweb details [--format=<fileformat>]... [--stdout] [--workers=<n>] [--debug] <id>...
    filmweb [--format=<fileformat>]... [--stdout] [--type=<titletype>]... [--workers=<n>] [--pages=<range>] [--since=<date>] [--debug] <username> <cookie>

Options:
    -h --help                     Show this screen
    -f --format=<fileformat>      Output file format: json (default), csv, letterboxd
    -o --stdout                   Print result to stdout instead of file
    -t --type=<titletype>         Title type: movie, tv_show, game (default: all)
    -w --workers=<n>              Number of parallel workers (default: CPU count)
    -p --pages=<range>            Fetch only given pages of ratings list (100 titles per page),
                                  e.g. 3 or 2-5 or 4- (default: all pages)
    -s --since=<date>             Export only titles rated (or re-rated) on or after
                                  given date, inclusive, format YYYY-MM-DD
                                  (default: all titles)
    -d --debug                    Debug prints

Source:
    https://github.com/ppatrzyk/filmweb-export

Dostępne dane:

Kolumna Opis
movie_id id filmu (filmweb)
timestamp czas oceny (unix)
date data oceny (yyyy-mm-dd)
favorite dodany do ulubionych
user_rating ocena użytkownika
global_rating ocena filmweb
global_rating_count ilość ocen filmu
global_rating_histogram rozkład ocen filmu
year premiera
duration czas trwania w minutach
original_title tytuł oryginalny
pl_title tytuł polski
title_type typ tytułu (movie, tv_show, game)
title_sub_type podtyp tytułu (np. serial_tv, mini_serial)
plot opis
url strona filmu
poster_url adres plakatu
genres gatunki
countries kraje produkcji
directors reżyserzy

DEV

Lokalna instalacja:

pip3 install -e .[dev]

Pyinstaller:

pyinstaller --distpath pyinstaller_dist --workpath pyinstaller_build packaging/filmweb.spec

Wynik znajdziesz w katalogu pyinstaller_dist/.

Docker:

podman build -t ghcr.io/ppatrzyk/filmweb-export:dev .

Metadata

Release files for filmweb 0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filmweb 0.14
File Size Uploaded Provenance Actions
filmweb-0.14.tar.gz 17.4 kB Without provenance Details for filmweb-0.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for filmweb 0.14
File Interpreter ABI Platform Actions
filmweb-0.14-py3-none-any.whl Python 3 none any Details for filmweb-0.14-py3-none-any.whl

Total release size: 31.5 kB

Release files / filmweb-0.14.tar.gz

Download URL filmweb-0.14.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0192dd86e9cfa82b6294d9d6b5ca292e1c99cf884c350273ea7b55e36cfdd70c
BLAKE2b-256 checksum
How to use checksums
8d802fdfe9afbbbabc4357ae8af4e15f68eb57a24496c770846d7273204e9cee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / filmweb-0.14-py3-none-any.whl

Download URL filmweb-0.14-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a04361fb1f824aaf3cfc0b864c448f0c9cf32eb53fa2c115d82731e6e55f06a2
BLAKE2b-256 checksum
How to use checksums
ef89d8fd46213a6913119aae227bc0c42812d4dcbbee6c9bc96e1a213c0984e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for filmweb 0.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page