Lurker News
My partner usually writes substack posts which I then mirror to our website’s blog section.

To automate this, I made a simple tool to scrape the post and clean it so that I can drop it to our blog easily. This might be useful to others as well.
Oh and ofcourse you can instruct GPT to make any final edits :D

Comments (99) 41 threads

Earlier comments
blobcode1 reply#
This is one of those things that the ever-amazing pandoc (https://pandoc.org/) does very well, on top of supporting virtually every other document format.
rubyn00bie1 reply#
I second this. Pandoc is up there as one of the most useful tools that exist, that almost no one talks about. It's amazing, easy to use, and works. I regularly see new tools in the space pop-up, but someone would have to have a REALLY unique and compelling feature, or highly optimized use case to get me to use anything else (besides Pandoc).
thangalin#
I wrote a series of blog posts about typesetting Markdown using pandoc:

https://dave.autonoma.ca/blog
Eventually, I found pandoc to be a little limiting:
* Awkward to use interpolated variables within prose.
* No real-time preview prior to rendering the final document.
* Limited options for TeX support (e.g., SVG vs. inline; ConTeXt vs. LaTeX).
* Inconsistent syntax for captions and cross-references.
* Requires glue to apply a single YAML metadata source file to multiple documents (e.g., book chapters).
* Does not (reliably) convert straight quotes to curly quotes.
For my purposes, I wanted to convert variable-laden Markdown and R Markdown to text, XHTML, and PDF formats. Eventually I replaced my tool chain of yamlp + pandoc + knitr by writing an integrated FOSS cross-platform desktop editor.
https://keenwrite.com/
KeenWrite uses flexmark-java + Renjin + KeenTeX + KeenQuotes to provide a solution that can replace pandoc + knitr in some situations.
Note how the captions and cross-reference syntax for images, tables, and equations is unified to use a double-colon sigil:
https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/docs/ref...
There's also command-line usage for integrating into build pipelines:
https://gitlab.com/DaveJarvis/KeenWrite/-/blob/main/docs/cmd...

ChadNauseam5 replies#
This is awesome. I kind of want a browser extension that does this to every page I read and saves them somewhere.
ElFitz1 reply#
Wouldn’t that describe Pocket, Readwise Reader, Matter, or another one of those many apps?

Edit: read too fast. Didn’t notice the automatic and systematic aspects.

BHSPitMonkey1 reply#
Pocket saves the address; I don't think they save the content.
intelkishan#
Just checked it, they also save the content.
ZunarJ5#
Wallabag + Obsidian + Wallabag Browser Ext. It's a manual trigger but its great.
cpeffer#
Very cool. We posted about a similar tool we built yesterday

https://www.firecrawl.dev/
It also crawls (although you can scrape single pages as well)

franciscop#
I also made one like this a while back, you can extract to markdown, html, text or PDF. I found pages that are the straight tool are very hard to SEO-position since there's not a lot of text/content on the page, even if the tool could be very useful. Feedback welcome:

https://content-parser.com/
These are all "wrappers around readability" AFAIK (including mine), which is the Mozilla project to make sites look clean and I use often.

Load more comments