2markdown – Transform Websites into Markdown
2markdown.com
2markdown.com
And not pay $0.01 per request?
There’s a node version too https://www.npmjs.com/package/@mozilla/readability
Readability works pretty well on "newspaper article" or "blog post" type content. But fails badly on the more structured webpages that I was interested in like API documentation, etc.
I really value dependencies which are easy for all users to install, cross-platform. Playwright is nice because it has a simple way to install its dependencies on most platforms. And the `pypandoc` module provides a seamless install of pandoc across platforms.
The result turns most web pages into nice markdown, without requiring users to solve some painful platform specific chromium dependency nightmare.
For example, it produced this markdown version [1] of the pyinfra getting started doc [2].
[0] https://github.com/paul-gauthier/aider/blob/main/aider/scrap...
[1] https://gist.github.com/paul-gauthier/6c8dd16a6bceb9fd287494...
How to Build a Startup Without Funding https://andinfinity.eu/post/2024-04-02-how-to-build-a-startu...
What's the minimal set of user stories for a Micro-SaaS MVP? https://andinfinity.eu/post/2022-06-06-whats-part-of-an-mvp-...
def website_to_text(url):
output = subprocess.check_output(["lynx", "-dump", "-nolist", url], stderr=subprocess.PIPE, universal_newlines=True)
return output.strip()
While a hosted service can be convenient, I find that using a text-based browser like Lynx gives almost the same results and consistent results.This, this ain't it chief. If you're looking for local saving, use firefox extensions. MarkDownload and SinglePage are both very good for backing up single web pages.
Modularizers like 2markdown are building single purpose services optimized for LLM workloads
Aggregators like ChatGPT fights for end-to-end AI experience.
It's just exciting to watch.
https://github.com/reagle/pandoc-wrappers/blob/main/doc2txt....
I’m not even going to try though because there’s a signup wall.
> This content displays when the browser does not support custom elements.
> To this
> This content displays when the browser does not support custom elements.
this happens with ublock origin on
pardon?
But they can take html as input as well..