Skip to content

Your first save

Outcome: one article saved by Wallabag itself, fetched from a page the lab served, with the stored title and text proved from Wallabag's own pages and from its database.

The fixture articles

The lab wrote two small fictional articles of its own — no real publication, person, or site is involved — and served them from a tiny fixture server:

  • elmwood-newsletter.html — a community newsletter piece about a plant swap
  • paper-star-chart.html — a how-to for a fictional hobby, keeping a paper star chart

Both live in wallabag-lab/fixtures/articles/ and were served by Python's built-in server:

python3 -m http.server 19089 --bind 127.0.0.1 \
  --directory wallabag-lab/fixtures/articles

Sign in

The lab signed in over HTTP, the way a browser does (driver wallabag-lab/drivers/lab-login-and-save.py, transcript wallabag-lab/transcripts/t03-login-and-first-save.txt):

GET /login -> 200
POST /login_check -> 200 final=http://127.0.0.1:18089/quickstart
GET /unread/list -> 200

Two things to know. The login form carries a CSRF token — a hidden proof the form came from Wallabag — so a script must read the login page first and send the token back; a browser does this for you. And a first login lands on a quickstart page rather than the article list. That is onboarding, not an error.

Save the address

The list pages carry the save form (field entry[url], posted to /new-entry). The lab posted the fixture address:

POST /new-entry url=http://127.0.0.1:19089/elmwood-newsletter.html -> 200
GET /view/3 -> 200
view page contains Elmwood title: True

Chapter 6 explains the detour hidden in that sentence: the stock release first refused this fetch, and the entry it saved was the "No title found" failure of chapter 1's rule. The successful save above is the lab's second attempt, after the documented lab-only adjustment chapter 6 describes. Do not skip chapter 6 — on a normal public article this refusal never appears, and you should know why the lab met it.

Prove what was stored

The view page showed the extracted article. The database row — read straight out of SQLite — is the harder evidence (t03):

[id] => 3
[title] => The Elmwood Community Newsletter — Spring Plant Swap Returns
[url] => http://127.0.0.1:19089/elmwood-newsletter.html
[http_status] => 200
[reading_time] => 1
[content] => <p>By the Elmwood Community Association. Published
for neighbours of the fictional Elmwood district.</p><p>The
spring plant swap returns to the Elmwood hall this year, and
organisers say it will be the largest yet. ...

Note what is present and what is not. The title is the article's own. The body is the article text in clean paragraphs. The fixture page's navigation and footer are gone. The page itself — its layout, its HTML — was never stored. The rule from chapter 1, measured: Wallabag kept the words.

Check: save one page of your own, open it in Wallabag, and compare the stored text with the original. If the words are there and the page furniture is not, your first save worked the way this guide means it.