dict.get() dict.get() — a dictionary method that returns the value for a given key. Unlike direct access…Open in Telegram ↗
What works best
Top posts by engagement and laggards — to see what to repeat and what to drop from rotation.
Collection generators In Python, collection generators (or generators) are a convenient way to create iterable…Open in Telegram ↗
Take screenshots with pyscreenshot module pyscreenshot provides cross-platform functionality, allowing…Open in Telegram ↗
Slots in classes By default, Python classes use __dict__ to store attributes, created by default when…Open in Telegram ↗
Building a task scheduler To my surprise, not everyone knows about the schedule package, which allows scheduling tasks and repeating them…Open in Telegram ↗
Building a task scheduler To my surprise, not everyone knows about the schedule package, which allows scheduling tasks and repeating them…Open in Telegram ↗
Redirect stdout contextlib has a cool context manager — redirect_stdout, which lets you redirect…Open in Telegram ↗
Async file loading If we have a list of image URLs to load, using a simple for loop will load them…Open in Telegram ↗