Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 41 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,43 @@ below (see "Releasing" in the README).

## [Unreleased]

**Upgrading from 3.0 or 3.1:** if `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` or
`PROXY_URL` is still set anywhere (`.env`, the shell, a service file, the container settings), rename
it before you upgrade: `SOFASCORE_SERVER__TOKEN`, `SOFASCORE_SERVER__ALLOWED_HOSTS`,
`SOFASCORE_CLIENT__USE_PROXY`, `SOFASCORE_CLIENT__PROXY` (or point `[server] token_env` /
`[client] proxy_env` at the old variable). 3.1 printed a deprecation warning for each one. Otherwise
nothing starts: every command stops with exit code 2, the web app and the container refuse to start, and
`ssc doctor` fails with `config_removed_name`. Each message names the old variable and the one to set,
never its value.
## [3.2.0] - 2026-11-20

3.2.0 removes the four 2.x environment names that 3.1 still read with a warning; set without their new
names, they now stop the app. `ssc doctor --live` checks the way downloads really go, backups carry the
certificates trusted for a network that re-signs HTTPS, and the browser profiles set aside after a
challenge show in `/api/v1/status` and on the Health page. Like 3.1 it is installed from source: a
checkout of the `v3.2.0` tag with `pip install -e .`, the release archive (the source with the built web
app), or the Docker image `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`. It is not published on PyPI.

**Upgrading from 3.1** (also in the README, "Upgrading from 3.1"):

- **Rename four environment names before you upgrade, or nothing starts.** `SOFASCORE_API_TOKEN`,
`SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and `PROXY_URL` are no longer read. If one of them is still set
anywhere (`.env`, the shell, a service file, the container settings) and its new name is not, nothing
starts: every command stops with exit code 2, the web app and the container refuse to start, and
`ssc doctor` fails with `config_removed_name`. Rename them:
`SOFASCORE_API_TOKEN` → `SOFASCORE_SERVER__TOKEN`, `SOFASCORE_ALLOWED_HOSTS` →
`SOFASCORE_SERVER__ALLOWED_HOSTS`, `USE_PROXY` → `SOFASCORE_CLIENT__USE_PROXY`, `PROXY_URL` →
`SOFASCORE_CLIENT__PROXY` (or point `[server] token_env` / `[client] proxy_env` at the old variable).
3.1 printed a deprecation warning for each one. `ssc doctor` shows every old name still set, where it is
set and the name to set; each message names the old variable and the one to set, never its value. See
"Removed" below.
- **`ssc doctor --live` sends one request the way downloads do**, with the app's HTTP client, and uses the
built-in browser only when no browser profile gets through. It no longer starts the browser first; to
check the browser on its own, run `ssc doctor --live --browser`. A refusal or rate limit the request
could not get past is now a failure (`live_failed`).
- **Backups now carry the trusted certificates** (the `ca` folder of the config directory), and a restore
puts them back. Backups from earlier versions restore as before; nothing to do.
- Run `pip install -r requirements.txt -c constraints.txt` and `pip install -e .` again after updating a
checkout, as after every update.

### Added

- `ssc doctor --live --browser` also checks the built-in browser on its own line (`live_browser`).
- `GET /api/v1/status` (and `/health`, `POST /status/check`) reports the browser profiles the server set
aside after a challenge: `connection.profiles {total, set_aside: [{name, until_utc}]}`. Health shows one
line when any is set aside.

### Changed

Expand All @@ -31,13 +60,8 @@ never its value.
but other content, and never removes certificates that are not in the backup; the built-in browser
is restarted to pick them up. `ssc backup verify` checks them. Backups from earlier versions restore
as before, and 3.1.2 can still restore a backup made by this version (it skips the certificates).

### Added

- `ssc doctor --live --browser` also checks the built-in browser on its own line (`live_browser`).
- `GET /api/v1/status` (and `/health`, `POST /status/check`) reports the browser profiles the server set
aside after a challenge: `connection.profiles {total, set_aside: [{name, until_utc}]}`. Health shows one
line when any is set aside.
- Dependencies raised: `fastapi` 0.162.5 and `playwright` 1.65.1 (browser stack), and for development
`pytest-asyncio` 1.5.0, `ruff` 0.17.5, `jsdom` 31.0.1 and `@vitejs/plugin-vue` 6.0.11 (#236 to #239).

### Removed

Expand Down Expand Up @@ -1748,7 +1772,8 @@ terminal tool; the web interface arrived in April 2026 (reported as 1.0.0 by `/h
was replaced by the Vue app on 2026-07-27, when the number became 2.0.0. See `git log` for
details.

[Unreleased]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.2...HEAD
[Unreleased]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.2.0...HEAD
[3.2.0]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.2...v3.2.0
[3.1.2]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.1...v3.1.2
[3.1.1]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.0...v3.1.1
[3.1.0]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.0.0...v3.1.0
Expand Down
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

One core, three faces: a **Python library**, the **`ssc` command line** for servers and automation, and a versioned **HTTP API** with a **web app** on top. It runs on your own machine or server.

> **3.1.2 is released from source.** Install it from a checkout (the Docker or pip steps below); each release on GitHub also has a source archive with the built web app, and its Docker image is `ghcr.io/tunjayoff/sofascore_scraper`. There is no package on PyPI. Coming from 3.0: [Upgrading from 3.0](#upgrading-from-30); from 2.x: [Upgrading from 2.x](#upgrading-from-2x).
> **3.2.0 is released from source.** Install it from a checkout (the Docker or pip steps below); each release on GitHub also has a source archive with the built web app, and its Docker image is `ghcr.io/tunjayoff/sofascore_scraper`. There is no package on PyPI. Coming from 3.1: [Upgrading from 3.1](#upgrading-from-31); from 3.0: [Upgrading from 3.0](#upgrading-from-30); from 2.x: [Upgrading from 2.x](#upgrading-from-2x).

Unofficial and not affiliated with SofaScore; see the [disclaimer](#disclaimer).

**Contents:** [Features](#features) · [Screenshots](#screenshots) · [Quick start](#quick-start) · [Command line](#command-line-ssc) · [HTTP API](#http-api) · [Python library](#python-library) · [Configuration](#configuration) · [Data and exports](#data-and-exports) · [Live watching](#live-watching) · [Security model](#security-model) · [Upgrading from 3.0](#upgrading-from-30) · [Upgrading from 2.x](#upgrading-from-2x) · [FAQ](#faq) · [Documentation](#documentation) · [Contributing](#contributing-and-development) · [Contact](#contact) · [License](#license)
**Contents:** [Features](#features) · [Screenshots](#screenshots) · [Quick start](#quick-start) · [Command line](#command-line-ssc) · [HTTP API](#http-api) · [Python library](#python-library) · [Configuration](#configuration) · [Data and exports](#data-and-exports) · [Live watching](#live-watching) · [Security model](#security-model) · [Upgrading from 3.1](#upgrading-from-31) · [Upgrading from 3.0](#upgrading-from-30) · [Upgrading from 2.x](#upgrading-from-2x) · [FAQ](#faq) · [Documentation](#documentation) · [Contributing](#contributing-and-development) · [Contact](#contact) · [License](#license)

## Features

Expand Down Expand Up @@ -239,6 +239,33 @@ The web app has **no user accounts** and listens on `127.0.0.1` by default. Open

The app itself answers only to allowed host names, refuses state-changing requests sent by other sites, sends a strict Content-Security-Policy, warns when it is exposed without a token, and keeps `.env`, the settings file and the browser profile readable by their owner only. Details: [docs/deploy](docs/deploy/README.md#access-token).

## Upgrading from 3.1

```bash
git pull
pip install -r requirements.txt -c constraints.txt
pip install -e .
cd frontend && npm install && npm run build && cd ..
ssc doctor # fails on an old name below that is still set, and names the one to set
```

With Docker Compose: `git pull`, then `docker compose pull` (or `docker compose build`) and `docker compose up -d`. The image of this release is `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`.

- **Rename four environment names before you upgrade.** `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and `PROXY_URL` (deprecated in 3.1, with a warning) are no longer read. If one of them is still set anywhere (`.env`, the shell, a service file, the container settings) and its new name is not, nothing starts: commands exit with `2`, the web app and the container refuse to start, and `ssc doctor` fails and shows each old name, where it is set and the name to set (never the value). Rename them:

| Old name (3.1) | New name (3.2) |
|---|---|
| `SOFASCORE_API_TOKEN` | `SOFASCORE_SERVER__TOKEN` |
| `SOFASCORE_ALLOWED_HOSTS` | `SOFASCORE_SERVER__ALLOWED_HOSTS` |
| `USE_PROXY` | `SOFASCORE_CLIENT__USE_PROXY` |
| `PROXY_URL` | `SOFASCORE_CLIENT__PROXY` |

Instead of renaming, `[server] token_env` or `[client] proxy_env` in the config file may name the variable that holds the token or the proxy, the old one included. The Docker entrypoint no longer reads the old allow-list name either.
- **`ssc doctor --live`** now sends one request the way downloads do, and uses the built-in browser only when that request falls back to it. `ssc doctor --live --browser` checks the browser as well.
- **Backups carry the trusted certificates** of a network that re-signs HTTPS (the `ca` folder of the config directory), and a restore puts them back. Older backups restore as before.

The full list is in [CHANGELOG.md](CHANGELOG.md#320---2026-11-20).

## Upgrading from 3.0

```bash
Expand Down
31 changes: 29 additions & 2 deletions README.tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

Tek çekirdek, üç yüz: bir **Python kütüphanesi**, sunucular ve otomasyon için **`ssc` komut satırı** ve üzerinde bir **web arayüzü** bulunan sürümlü bir **HTTP API**. Kendi bilgisayarınızda ya da sunucunuzda çalışır.

> **3.1.2 kaynaktan kurulan bir sürüm olarak yayımlandı.** Bir checkout'tan kurun (aşağıdaki Docker ya da pip adımları); GitHub'daki her sürümde derlenmiş web arayüzünü içeren bir kaynak arşivi de vardır, Docker imajı ise `ghcr.io/tunjayoff/sofascore_scraper`'dır. PyPI'de paket yoktur. 3.0'dan geçiyorsanız: [3.0'dan yükseltme](#30dan-yükseltme); 2.x'ten geçiyorsanız: [2.x'ten yükseltme](#2xten-yükseltme).
> **3.2.0 kaynaktan kurulan bir sürüm olarak yayımlandı.** Bir checkout'tan kurun (aşağıdaki Docker ya da pip adımları); GitHub'daki her sürümde derlenmiş web arayüzünü içeren bir kaynak arşivi de vardır, Docker imajı ise `ghcr.io/tunjayoff/sofascore_scraper`'dır. PyPI'de paket yoktur. 3.1'den geçiyorsanız: [3.1'den yükseltme](#31den-yükseltme); 3.0'dan geçiyorsanız: [3.0'dan yükseltme](#30dan-yükseltme); 2.x'ten geçiyorsanız: [2.x'ten yükseltme](#2xten-yükseltme).

Resmî değildir, SofaScore ile bir bağı yoktur; bkz. [sorumluluk reddi](#sorumluluk-reddi).

**İçindekiler:** [Özellikler](#özellikler) · [Ekran görüntüleri](#ekran-görüntüleri) · [Hızlı başlangıç](#hızlı-başlangıç) · [Komut satırı](#komut-satırı-ssc) · [HTTP API](#http-api) · [Python kütüphanesi](#python-kütüphanesi) · [Yapılandırma](#yapılandırma) · [Veri ve dışa aktarma](#veri-ve-dışa-aktarma) · [Canlı izleme](#canlı-izleme) · [Güvenlik modeli](#güvenlik-modeli) · [3.0'dan yükseltme](#30dan-yükseltme) · [2.x'ten yükseltme](#2xten-yükseltme) · [SSS](#sss) · [Belgeler](#belgeler) · [Katkı](#katkı-ve-geliştirme) · [İletişim](#iletisim) · [Lisans](#lisans)
**İçindekiler:** [Özellikler](#özellikler) · [Ekran görüntüleri](#ekran-görüntüleri) · [Hızlı başlangıç](#hızlı-başlangıç) · [Komut satırı](#komut-satırı-ssc) · [HTTP API](#http-api) · [Python kütüphanesi](#python-kütüphanesi) · [Yapılandırma](#yapılandırma) · [Veri ve dışa aktarma](#veri-ve-dışa-aktarma) · [Canlı izleme](#canlı-izleme) · [Güvenlik modeli](#güvenlik-modeli) · [3.1'den yükseltme](#31den-yükseltme) · [3.0'dan yükseltme](#30dan-yükseltme) · [2.x'ten yükseltme](#2xten-yükseltme) · [SSS](#sss) · [Belgeler](#belgeler) · [Katkı](#katkı-ve-geliştirme) · [İletişim](#iletisim) · [Lisans](#lisans)

## Özellikler

Expand Down Expand Up @@ -239,6 +239,33 @@ Web arayüzünde **kullanıcı hesabı yoktur** ve varsayılan olarak `127.0.0.1

Uygulama yalnızca izin verilen sunucu adlarına yanıt verir, başka sitelerin gönderdiği durum değiştiren istekleri reddeder, sıkı bir Content-Security-Policy gönderir, anahtarsız açıldığında uyarır ve `.env`'i, ayar dosyasını ve tarayıcı profilini yalnızca sahibinin okuyabileceği biçimde tutar. Ayrıntılar: [docs/deploy](docs/deploy/README.md#access-token) (İngilizce).

## 3.1'den yükseltme

```bash
git pull
pip install -r requirements.txt -c constraints.txt
pip install -e .
cd frontend && npm install && npm run build && cd ..
ssc doctor # aşağıdaki eski adlardan biri hâlâ duruyorsa başarısız olur ve verilecek adı söyler
```

Docker Compose ile: `git pull`, ardından `docker compose pull` (ya da `docker compose build`) ve `docker compose up -d`. Bu sürümün imajı `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`'dır.

- **Yükseltmeden önce dört ortam adını değiştirin.** `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` ve `PROXY_URL` (3.1'de bir uyarıyla kullanımdan kalkmıştı) artık okunmaz. Biri hâlâ bir yerde (`.env`, kabuk, bir servis dosyası, konteyner ayarları) duruyor ve yeni adı verilmemişse hiçbir şey başlamaz: komutlar `2` ile çıkar, web uygulaması ve konteyner başlamaz, `ssc doctor` başarısız olur ve her eski adı, nerede verildiğini ve verilecek adı gösterir (değeri asla). Adları şöyle değiştirin:

| Eski ad (3.1) | Yeni ad (3.2) |
|---|---|
| `SOFASCORE_API_TOKEN` | `SOFASCORE_SERVER__TOKEN` |
| `SOFASCORE_ALLOWED_HOSTS` | `SOFASCORE_SERVER__ALLOWED_HOSTS` |
| `USE_PROXY` | `SOFASCORE_CLIENT__USE_PROXY` |
| `PROXY_URL` | `SOFASCORE_CLIENT__PROXY` |

Adı değiştirmek yerine yapılandırma dosyasındaki `[server] token_env` ya da `[client] proxy_env`, belirteci ya da proxy'yi taşıyan değişkenin adını (eskisi de olabilir) verebilir. Docker giriş betiği de eski izin listesi adını artık okumaz.
- **`ssc doctor --live`** artık indirmelerin yaptığı gibi tek bir istek gönderir ve yerleşik tarayıcıyı yalnızca bu istek ona düştüğünde kullanır. `ssc doctor --live --browser` tarayıcıyı da denetler.
- **Yedekler güvenilen sertifikaları taşır**: HTTPS'i yeniden imzalayan bir ağ için güvenilen sertifikalar (yapılandırma klasörünün `ca` klasörü) yedeğe girer ve geri yükleme onları geri koyar. Eski yedekler eskisi gibi geri yüklenir.

Tam liste [CHANGELOG.md](CHANGELOG.md#320---2026-11-20) dosyasındadır (İngilizce).

## 3.0'dan yükseltme

```bash
Expand Down
Loading
Loading