RSS, Atom & Substack to Clean Markdown for RAG
Pricing
from $2.00 / 1,000 articles processed
RSS, Atom & Substack to Clean Markdown for RAG
Turn RSS, Atom and Substack feeds into clean Markdown articles with metadata and optional RAG chunks. Fetches the full article when the feed only has a teaser, keeps code blocks. No browser, pay per article.
Pricing
from $2.00 / 1,000 articles processed
Rating
0.0
(0)
Developer
Egor Kramskoy
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Features
Share
RSS to Markdown converter for AI pipelines. Give it RSS, Atom or Substack feed URLs and get one clean Markdown document per article, with title, author, date, source URL, word count, token estimate and optional RAG-ready chunks. When a feed only publishes teasers, the Actor downloads the article page and extracts the full text. Code blocks are preserved. No browser, no JavaScript rendering, pay per article.
Use it as a Substack scraper for RAG, an Atom feed to Markdown converter, or to turn any blog into an LLM dataset.
What it does
- Reads RSS 2.0, Atom 1.0 and RSS 1.0 (RDF) feeds, including Substack (
https://<name>.substack.com/feed). - Uses the full content from the feed (
content:encoded, Atomcontent) when it is complete. - Fetches the article page when the feed has only a short teaser or a "Read more" excerpt, and extracts the main text (navigation, sidebars and footers are removed).
- Keeps code blocks as fenced Markdown with the language tag, including blocks from MkDocs, Docusaurus, Pygments and Starlight pages.
- Falls back to the feed text if the page cannot be downloaded, so you still get the article.
- Splits Markdown into overlapping chunks for vector databases when
chunkSizeis set.
Input
{"feedUrls": ["https://blog.python.org/feeds/posts/default?alt=rss"],"maxArticlesPerFeed": 3,"fetchFullArticle": true,"chunkSize": 0,"chunkOverlap": 200,"maxConcurrency": 5}
| Field | Default | Description |
|---|---|---|
feedUrls | Python blog feed | RSS, Atom or Substack feed URLs |
maxArticlesPerFeed | 20 | Newest N articles per feed (1-500) |
fetchFullArticle | true | Download the article page when the feed has only a teaser |
chunkSize | 0 | Characters per chunk; 0 disables chunking (max 16000) |
chunkOverlap | 200 | Overlap between chunks |
maxConcurrency | 5 | Parallel article downloads (1-20) |
Output
One dataset item per article:
{"feed_title": "Python Insider","feed_url": "https://blog.python.org/feeds/posts/default?alt=rss","article_title": "Python 3.13.0 is now available","article_url": "https://blog.python.org/2024/10/python-3130-final-released.html","author": "Thomas Wouters","published_at": "2024-10-07T16:00:00Z","markdown": "# Python 3.13.0 is now available\n\n**Author:** Thomas Wouters\n**Published:** 2024-10-07T16:00:00Z\n**Source:** https://blog.python.org/...\n\nThe newest release of Python ...","chunks": [],"word_count": 640,"estimated_tokens": 910,"status": "ok","error_message": null}
A feed that cannot be downloaded or parsed produces one item with status: "error" and an error_message. Errors are not charged per article.
Pricing
Pay per event: $0.02 per run (run-started) plus $0.002 per article (article-processed), charged only for articles converted successfully. Prices are set in Apify Console and may change.
Limits
- No JavaScript rendering: pages that build their content in the browser may return little or no text.
- Paywalled or members-only articles return only the public teaser.
- Respect the publishers' terms of service and robots rules; use the data in line with the license of the content.
- Page downloads are limited to 10 MB, feeds to 20 MB.
Use with Claude Desktop / Cursor (MCP)
Connect the Actor to any MCP client through the Apify MCP server: https://mcp.apify.com/?actors=sequined_lacework/rss-article-markdown
Add this to your Claude Desktop or Cursor MCP config (mcpServers):
{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=sequined_lacework/rss-article-markdown","headers": {"Authorization": "Bearer <YOUR_APIFY_TOKEN>"}}}}
An AI agent can pass a blog, Atom or Substack feed URL and get full articles as clean Markdown, even when the feed only contains teasers, for example to monitor a newsletter or research a topic.
Integrations: n8n and LangChain
n8n
Use the Apify node (operation: Run Actor, then Get Dataset Items) with the Actor ID sequined_lacework/rss-article-markdown, or an HTTP Request node (method POST, body type JSON) pointing at the synchronous endpoint, which returns the dataset items directly:
https://api.apify.com/v2/acts/sequined_lacework~rss-article-markdown/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>
Body:
{"feedUrls": ["https://example.substack.com/feed"],"maxArticlesPerFeed": 10,"fetchFullArticle": true}
Synchronous runs time out after 300 seconds, so use the regular run endpoint for large inputs.
LangChain (Python)
Install langchain-apify and langchain-core, and set the APIFY_API_TOKEN environment variable. The Markdown is in the markdown field and becomes the document page_content.
from langchain_apify import ApifyWrapperfrom langchain_core.documents import Documentapify = ApifyWrapper()loader = apify.call_actor(actor_id="sequined_lacework/rss-article-markdown",run_input={"feedUrls": ["https://example.substack.com/feed"], "maxArticlesPerFeed": 10},dataset_mapping_function=lambda item: Document(page_content=item["markdown"] or "",metadata={"source": item["article_url"], "title": item["article_title"], "author": item["author"]},),)docs = [d for d in loader.load() if d.page_content]
To load an existing run instead, use ApifyDatasetLoader(dataset_id="<DATASET_ID>", dataset_mapping_function=...) from langchain_apify with the same mapping function. If you set chunkSize, the chunks field already holds ready-to-embed pieces, so no extra text splitter is needed.
Free plan limits
On the free Apify plan the Actor runs in demo mode:
- At most 10 articles per run in total, across all feeds (the lower of 10 and
maxArticlesPerFeedper feed). - Remaining articles and feeds are skipped and not charged.
The run never fails because of these limits, and the log and status message say when something was skipped. Upgrade to a paid Apify plan to process the full input.
FAQ
How do I scrape a Substack newsletter? Use https://<name>.substack.com/feed. Free posts come with full text in the feed; paid posts contain only the teaser.
Does it work with Atom feeds? Yes, RSS 2.0, Atom and RSS 1.0 are supported.
Why is an article short? The feed had only a teaser and the page could not be fetched, or the page is paywalled or rendered by JavaScript. The error_message field explains page download problems.
Are code blocks kept? Yes, as fenced blocks with a language tag when the page declares one.
Can I get chunks for a vector database? Set chunkSize (for example 1000) and chunkOverlap; chunks break at paragraph and sentence boundaries.
Related Actors for RAG Pipelines
Build a complete RAG ingestion pipeline with the same clean Markdown output, chunking options and pay-per-event pricing:
- PDF to Markdown for RAG & LLM: PDFs (arXiv, Google Drive, any URL) with tables preserved
- Website & Sitemap to Markdown for RAG & LLM: docs sites, blogs and sitemaps, code blocks preserved
- Podcast RSS & Transcript Extractor for AI/RAG: podcast episodes with publisher transcripts
- GitHub Repository to Clean Markdown for LLM & RAG: whole codebases as one Markdown context with a file tree
- RSS, Atom & Substack to Clean Markdown for RAG (this Actor): blogs and newsletters, full articles from teaser feeds