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.12 \
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
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>] [--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)
-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.12
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 | |
|---|---|---|---|---|
| filmweb-0.12.tar.gz | 11.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| filmweb-0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / filmweb-0.12.tar.gz
| Download URL | filmweb-0.12.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ec0cfb83eb244fa64661f9299fcf573f315544e46ab474574338750ab7f6dad
|
|
BLAKE2b-256 checksum How to use checksums |
84063db18ca4e139f4ec351cf3c7727c5b3b977b65cde32ff2b461cbd3539f41
|
| 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.12-py3-none-any.whl
| Download URL | filmweb-0.12-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3f610d21293197a98c1d498585b84323f0ff6775963223ac15f2e5e694ebff7
|
|
BLAKE2b-256 checksum How to use checksums |
5d02f99979f55dfb846de145b8d28518eb205b4104574499b4491c4d84daf13d
|
| 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.12
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.