Scrape a Website using Playwright Python

I build a crawler to get the waterlevels of rivers in Baden-W├╝rttemberg every 15 minutes. There is no real API, but I wanted to plot the data over time. The page is rendered using Javascript which made a beautifulsoup solution not possible.

But there is Playwright for Python.

Playwright works with multiple browsers and supports an interactive mode.

As example for the waterlevel website:

import asyncio
from playwright.async_api import async_playwright

async def main():
    async with async_playwright() as p:
        browser = await p.chromium.launch(headless=False)
        page = await browser.new_page()
        await page.goto("")
        print(await page.title())
        # pause to inspect the page
        await page.pause()
        await browser.close()

This starts an interactive chromium. F12 is available and every page.pause() is a breakpoint. The page is paused after printing the title of the website.


The interactivity and full debug capabilities allow a lot easier development than using beautifulsoup on a downloaded HTML file.

The crawler is using GitHub Actions to download the data using schedules.

Download your data from Oura

The OuraRing is a sleep and activity tracker in the form factor of a ring.
I have a black one since end of 2020 and I am very happy with the insights about my sleep.

At the end of October 2021 Oura announced a new OuraRing (Gen3) - but this time with a subscription requirement.
The old rings have no monthly fee (all Gen1+Gen2 rings won't require a subscription in the future).
Every old customer gets a free lifetime subscription, but is forced to buy a new Gen3 ring until 2021-11-09.
I don't want to be forced into replacing a perfectly working device. So no thanks!

I cannot trust Oura anymore after this move so I decided it is time to write a downloader for the past days I used my Oura ring.
My plan is to use the ring until it breaks and than search for an alternative. But no OuraRing for sure.

Thanks to python-ouraring the downloader was easy to bootstrap.
My code downloads the daily data for sleep, activity, readiness and ideal bedtime.
This data is written into a sqlite database for future analysis.

The repo with the downloader:
The only thing needed is a personal access token from Oura.

Reparing AKG 702 cable break

My beloved AKG 702 went silent on the right side. This is a known problem for quite some time now. AKG hopefully will replace the wires on newer headphones. My headphones are only about a year old so I could probably get it repaired but after watching a repair video I had to do this small fix myself.


I soldered the white cable back into the correct place and taped the wire a bit.
But I will probably fix this issue again until removing the wire as shown in the videos below here:

and another one: