Html to Markdown Converter

Html to Markdown Converter

by antonio_espresso

Crawl a target URL and convert its HTML content into clean, structured Markdown with optional heading-based chunking.

192 runs
27 users
Try This Actor

Opens on Apify.com

About Html to Markdown Converter

Crawl a target URL and convert its HTML content into clean, structured Markdown with optional heading-based chunking.

What does this actor do?

Html to Markdown Converter is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

Html to Markdown Converter Convert HTML pages to clean, structured Markdown with optional heading-level chunking. This Apify actor crawls one or more URLs, extracts HTML content and converts it into readable Markdown. It supports both full-document conversion and heading-based section chunking (h1โ€“h6). --- ## ๐Ÿš€ Features - ๐Ÿ•ท๏ธ Crawl any public website - ๐Ÿช„ Convert HTML to GitHub-style Markdown - ๐Ÿงฉ Automatically chunk content by heading - ๐Ÿงผ Cleans up temporary crawl artifacts - ๐Ÿž Logs crawl/parsing issues to Apify logs --- ## ๐Ÿ“ฅ Input Example json { "urls": ["https://apify.com"], "output_format": "json", "debug": false } ```` | Field | Type | Description | | --------------- | ------- | ----------------------------------- | | `urls` | array | List of URLs to crawl | | `output_format` | string | `"json"` or `"df"` (DataFrame-like) | | `debug` | boolean | Enables verbose logging | --- ## ๐Ÿ“ค Output Example Each record includes: * `url` โ€“ Source URL * `markdown` โ€“ Full converted content * `chunks` โ€“ Markdown split into sections by headingjson { "url": "https://apify.com", "markdown": "# Welcome to Apify\n...", "chunks": [ "# Welcome to Apify", "## What is Apify?", "## Get Started" ] } --- ## โ–ถ๏ธ Usage You can run this actor: ### ๐ŸŸฃ Apify CLIbash apify call antonio_espresso/html-to-markdown-converter --input '{ "urls": ["https://apify.com"] }' ### ๐Ÿ Pythonpython import requests ACTOR_ID = "antonio_espresso/html-to-markdown-converter" TOKEN = "APIFY_API_TOKEN" # Replace with your token response = requests.post( f"https://api.apify.com/v2/actor-tasks/{ACTOR_ID}/runs", headers={"Authorization": f"Bearer {TOKEN}"}, json={"urls": ["https://apify.com"], "output_format": "json"} ) print(response.json()) --- ## ๐Ÿ‘จโ€๐Ÿ’ป Author Made with โค๏ธ by [SEO Antonio Blago](https://antonioblago.de) ### ๐Ÿ”— My Other Apify Actors: * ๐Ÿ” [Competitor-Based Keyword Recommendations](https://apify.com/antonio_espresso/keyword-competitor-recommendation) * ๐Ÿง  [LLMs.txt Generator](https://apify.com/antonio_espresso/llms-txt-generator) * ๐Ÿ’ก [AI Prompt Keyword Matcher](https://apify.com/antonio_espresso/ai-prompt-keyword-matcher) * ๐Ÿ“ฐ [Markdown to Social Media Post](https://apify.com/antonio_espresso/markdowntosocialmediapost) * ๐ŸŒ [HTTP Status Codes and URL Checker](https://apify.com/antonio_espresso/website-status-code-crawler) --- ## โš™๏ธ Tech Stack * Python 3.10+ * Apify SDK for Python * Advertools for Markdown generation --- ## ๐Ÿงช Local Devbash pip install -r requirements.txt python src/markdown_convert.py Push to Apify:bash apify push ``` --- ## ๐Ÿงผ License MIT

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Html to Markdown Converter now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
antonio_espresso
Pricing
Paid
Total Runs
192
Active Users
27
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support