Home

Aggregates RSS feeds into a MkDocs Material blog: one post per news item, with an RSS feed for the blog, category pages and one page per feed (author).
folheto does two things:
folheto initcreates the blog repository, ready to use.- Inside that repository,
folheto feed ...configures the feeds andfolheto syncdownloads the news.
Quick start
uv tool install folheto # or: pipx install folheto
folheto init my-blog --user your-github-user
cd my-blog
folheto feed add "G1 Technology" https://g1.globo.com/rss/g1/tecnologia/ -c Technology
folheto sync # creates docs/posts/<category>/<news>.md
uv run mkdocs serve # http://127.0.0.1:8000
Without --user, the site_url and repo_url in mkdocs.yml keep a
USUARIO placeholder for you to replace later (the RSS plugin requires
site_url).
How it works
- Feeds live in
feeds.json. Each one has a unique name, which is also the key used to edit and remove it. - For every new news item,
synccreates a Markdown file indocs/posts/<category>/. There is no database: the posts are the state, and the file name ends with a hash of the link, which prevents duplicates. - Feeds that only carry the headline can have the news page downloaded
(
--full-page) and the text extracted with a CSS selector (-s). - All HTML coming from the internet is sanitized (
nh3).
See the command reference and what init creates.
Development
uv sync
uv run pre-commit install --hook-type pre-commit --hook-type commit-msg
uv run pytest
uv run mkdocs serve # this documentation