Go to example tasks

Turn Python documentation pages into clean Markdown for RAG

Converts three pages of the official Python tutorial into clean Markdown and plain text, one row per page, with headings, code blocks, tables and links kept and the menus, sidebars and footers dropped. Each row also has the page title, language, character count and the links found in the content. Replace the URLs with any documentation or article pages to build a RAG corpus.

Try for free
URL to Markdown: Clean Text for RAG & LLMs
URL to Markdown: Clean Text for RAG & LLMskizukidata/url-to-markdown
Page
Title
Status
Characters
+1 field
Text
Number
Boolean
List
Object

Input

Page URLs:https://docs.python.org/3/tutorial/introduction.html+2
Maximum pages:3
Maximum characters per page:40000
Collect page links:true

Output fields

Page
Title
Status
Characters
Truncated

How it works

Sign up on Apify or log in

The URL to Markdown: Clean Text for RAG & LLMs Actor is ready to run with the inputs already set for "Turn Python documentation pages into clean Markdown for RAG". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Turn Python documentation pages into clean Markdown for RAG" task

The URL to Markdown: Clean Text for RAG & LLMs Actor will start running based on the input automatically. You can also change all the input fields, like page urls, maximum pages, and more, to match your specific use case.

Receive the "Turn Python documentation pages into clean Markdown for RAG" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as page, title, status, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Turn Python documentation pages into clean Markdown for RAG" task via API.

Image

Integrate "Turn Python documentation pages into clean Markdown for RAG" into your workflow

Connect "Turn Python documentation pages into clean Markdown for RAG" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The docs to Markdown task returns one row per page: the main content as Markdown and as plain text, the title, description, language, character count, whether the page was cut, and the absolute links in the content.

Replace Page URLs in the docs to Markdown task with any public HTML pages, up to 200 per run, and raise Maximum pages to match. Pages that need JavaScript to show content write no row and are not charged.

The docs to Markdown task keeps headings, links, tables, lists, code blocks and blockquotes, and drops menus, cookie banners, sidebars and footers, so a RAG chunk quotes the page and not its navigation.

The docs to Markdown task needs no login and no browser. It reads each page's HTML, respects robots.txt, charges only for pages that produced content, and is not affiliated with the Python Software Foundation.