KeiruaProd

I help my clients acquire new users and make more money with their web businesses. I have ten years of experience with SaaS projects. If that’s something you need help with, we should get in touch!
< Back to article list

Summer articles

Some articles or comments I read and found interesting during this summer. Mostly from HN/lobste.rs, but I think there’s value in keeping track of what I read.

Code

Math

Games

Misc

Note

I kept track of these articles in a .md file, and extracted the articles using beautifulsoup. Is that overengineered ? Maybe. If I keep keeping track of those articles, storing them in a database as a cache + adding a search engine (postgres ? meilisearch ?) might be worth it.

import requests
from bs4 import BeautifulSoup

def load_urls(file="links.md"):
    urls = []
    with open(file) as f:
        urls = list(map(lambda s:s.strip(), f.readlines()))
    return urls

if __name__ == "__main__":
    urls = load_urls()

    for url in urls:
        content = requests.get(url).content
        soup = BeautifulSoup(content, "html.parser")
        title = soup.find('title').string.strip()

        print(f"[{title}]({url})")

You May Also Enjoy