Extracting URLs (faster) with Python

The recommended approach to do any HTML parsing with Python is to use BeautifulSoup. It's a great library, easy to use but at the same time a bit slow when processing a lot of documents. In this blog post, I would like to highlight some alternative ways on how to extract URLs from HTML documents without using BeautifulSoup. I added a performance test at the end to compare each alternative. Beautif…

Read more

How to create a thumbnail API service in 5 minutes

In this blog article, I would like to show you how to develop an API service for creating thumbnails with AWS Lambda in less than 5 minutes. The service will accept pictures over a REST API and return the thumbnails using ImageMagick. In a second step, we are going to store the thumbnails directly in S3 and return their public accessible link. We will use Chalice a new framework for Python from Am…

Read more

Weather Station with Web UI

Summer is here and because I like to know how hot it is outside I built a small weather station based on a Espruino Pico. The weather station has a built-in web UI to check the temperature from a computer or mobile phone. The UI is self-contained and hosted directly on the Espruino. No Internet necessary. This is what we will build: Btw. the screenshot shows the current temperature in my apartment…

Read more

A tiny nifty data logger

In this week's blog post, I would like to show you how to make a data logger. Data loggers are fun to built and the logged data is useful to gain insights. For example to check the humidity in your apartment or to see the temperature profile. Hardware As usual I will use the Espruino Pico for the data logger. For the temperature and humidity sensor, I'm using the HTU21D-F breakout board. You can b…

Read more

Alarm-System the size of a USB stick

Today I would like to show you how to build an alarm system with the size of a USB stick. There are a lot of advantages to this. It's so small it can be placed everywhere in a house. The components we use are cheap so it is possible to place a system in each room. The system is not only cheap and tiny but also not very power hungry. Hence, we can power it from a small battery or a USB charger. Th…

Read more