INNER CODE UNIT · Python
fetch_tils
simonw/simonw · build_readme.py:375
def fetch_tils():
sql = """
select path, replace(title, '_', '\_') as title, url, topic, slug, created_utc
from til order by created_utc desc limit 6
""".strip()
return httpx.get(
"https://til.simonwillison.net/tils.json",
params={
"sql": sql,
"_shape": "array",
},
).json()
def fetch_blog_entries():
entries = feedparser.parse("https://simonwillison.net/atom/entries/")["entries"]
return [
{