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.13 \
filmweb <username> <cookie>
Gotowe binarki
Samodzielny plik wykonywalny zbudowany przy użyciu PyInstaller (Linux, MacOS, Windows).
Pobierz z zakładki Releases.
Instrukcja
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>
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.
Skąd wziąć cookie?
Przykład
$ filmweb -f csv -f json pieca "didomi_token=(...)=="
INFO:root:Checking args...
INFO:root:Fetching list of rated titles [1/4]...
INFO:root:Fetching list of movie ratings...
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:00<00:00, 43.70it/s]
INFO:root:Fetching list of tv_show ratings...
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 10.30it/s]
INFO:root:Skipping game, no ratings found
INFO:root:User pieca has 955 rated titles...
INFO:root:Fetching info about titles [2/4]...
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 955/955 [01:02<00:00, 15.21it/s]
INFO:root:Fetching global rating for titles [3/4]...
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 955/955 [01:15<00:00, 12.72it/s]
INFO:root:Writing data [4/4]...
INFO:root:pieca_20260604.json written!
INFO:root:pieca_20260604.csv written!
$ cat pieca_20260604.json | jq .[0]
{
"timestamp": 1579354599456,
"favorite": null,
"user_rating": 5,
"global_rating": 6.03865,
"global_rating_count": 414,
"original_title": "Ejdeha Vared Mishavad!",
"pl_title": "Wejście smoka!",
"year": 2016,
"movie_id": "757318",
"title_type": "movie",
"title_sub_type": "film_cinema",
"url": "https://www.filmweb.pl/film/Wej%C5%9Bcie+smoka%21-2016-757318",
"date": "2020-01-18"
}
$ duckdb -box -c "SELECT * FROM read_csv_auto('pieca_20260604.csv') ORDER BY RANDOM() LIMIT 3;"
┌───────────────┬──────────┬─────────────┬───────────────┬─────────────────────┬─────────────────┬─────────────────┬──────┬──────────┬────────────┬────────────────┬────────────────────────────────────────────────────────────────────┬────────────┐
│ timestamp │ favorite │ user_rating │ global_rating │ global_rating_count │ original_title │ pl_title │ year │ movie_id │ title_type │ title_sub_type │ url │ date │
├───────────────┼──────────┼─────────────┼───────────────┼─────────────────────┼─────────────────┼─────────────────┼──────┼──────────┼────────────┼────────────────┼────────────────────────────────────────────────────────────────────┼────────────┤
│ 1552236606975 │ NULL │ 7 │ 6.60002 │ 25576 │ Force Majeure │ Turysta │ 2014 │ 709434 │ movie │ film_cinema │ https://www.filmweb.pl/film/Turysta-2014-709434 │ 2019-03-10 │
│ 1638616857444 │ NULL │ 5 │ 7.27418 │ 60056 │ Pogoda na jutro │ Pogoda na jutro │ 2003 │ 39495 │ movie │ film_cinema │ https://www.filmweb.pl/film/Pogoda+na+jutro-2003-39495 │ 2021-12-04 │
│ 1638614791800 │ NULL │ 6 │ 7.69933 │ 51552 │ Żółty szalik │ Żółty szalik │ 2000 │ 32453 │ movie │ film_tv │ https://www.filmweb.pl/film/%C5%BB%C3%B3%C5%82ty+szalik-2000-32453 │ 2021-12-04 │
└───────────────┴──────────┴─────────────┴───────────────┴─────────────────────┴─────────────────┴─────────────────┴──────┴──────────┴────────────┴────────────────┴────────────────────────────────────────────────────────────────────┴────────────┘
Wszystkie opcje
$ filmweb -h
filmweb
Usage:
filmweb [--format=<fileformat>]... [--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
-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 |
|---|---|
| year | premiera |
| global_rating_count | ilość ocen filmu |
| global_rating | ocena filmweb |
| timestamp | czas oceny (unix) |
| date | data oceny (yyyy-mm-dd) |
| user_rating | ocena użytkownika |
| favorite | dodany do ulubionych |
| original_title | tytuł oryginalny |
| pl_title | tytuł polski |
| movie_id | id filmu (filmweb) |
| title_type | typ tytułu (movie, tv_show, game) |
| title_sub_type | podtyp tytułu (np. serial_tv, mini_serial) |
| url | strona filmu |
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.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| filmweb-0.13.tar.gz | 13.1 kB | Without provenance | Details for filmweb-0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| filmweb-0.13-py3-none-any.whl | Python 3 | none | any | Details for filmweb-0.13-py3-none-any.whl |
Total release size: 24.3 kB
Release files / filmweb-0.13.tar.gz
| Download URL | filmweb-0.13.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4059c9f38f5065189d32692fb9fb9838f29cc08ed7e96d0229412bf7aaed2dc
|
|
BLAKE2b-256 checksum How to use checksums |
a9947c5cb04288e9fcc48045e6447465e1baeb28a8b9631b3f285e1f2eb0edd2
|
| 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.13-py3-none-any.whl
| Download URL | filmweb-0.13-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
119ccd3dc07e0b88fd1c9bd431d453a344060964fdd1defe3aa68d81dc7d3a56
|
|
BLAKE2b-256 checksum How to use checksums |
a3b244c5c5ed46e8f4e78dfe48936e1f13d11ada00d5355a15347cc5c9dc2a4b
|
| 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.13
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.