Skip to main content

filmweb-export

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

Instalacja

Wymagania:

Instalacja:

pip install filmweb

Albo:

pip install https://github.com/ppatrzyk/filmweb-export/archive/master.zip

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>
  1. Otwórz Network Monitor w przeglądarce (Ctrl+Shift+E w Firefoxie),
  2. Zaloguj się i wejdź na filmweb. Wpisz info do filtra w Network Monitor i zaznacz pierwszy wynik,
  3. Wejdź w zakładkę Headers > Request Headers,
  4. Skopiuj wartość Cookie i podaj ją jako argument do skryptu.

Browser Screenshot

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>]... [--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 (all by default)
    -d --debug                    Debug prints

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

Metadata

Release files for filmweb 0.11

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.11
File Size Uploaded
filmweb-0.11.tar.gz 8.5 kB Details

Built distribution (wheel)

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

Total release size: 17.5 kB

Release files / filmweb-0.11.tar.gz

Download URL filmweb-0.11.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e097b6c5cb81febad2e5e22ed13c2679e7a098fb68095d339d953f97e7e5b879
BLAKE2b-256 checksum
How to use checksums
04372e51bc58988b3bf4f47be1cb02821386292720c2b90bfb5a6a6d6e2fd734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

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

Download URL filmweb-0.11-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
804df4700a415b21cb66002df3d33a19a55954ea901785d179c3e77d31d8c0cc
BLAKE2b-256 checksum
How to use checksums
c405067d2bbc3f1f612bd47d53a01c2c6356fb86c3b24d0baf89092cff41e3ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

1 release file

0.3

1 release file

0.2

1 release file

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