{"repo":"timf34/Substack2Markdown","free":true,"listed":false,"github":"https://github.com/timf34/Substack2Markdown","clone":"git clone https://github.com/timf34/Substack2Markdown.git","description":"Download free and premium Substack posts, saving them as Markdown files. Also generates HTML interfaces to allow you to browse and sort the markdown files for each author.","language":"Python","stars":512,"topics":["substack-scraper-python","python","scraper","selenium","substack","markdown","html","javascript","ui","substack-download"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"# Substack2Markdown Substack2Markdown is a Python tool for downloading free and premium Substack posts and saving them as both Markdown and HTML files, and includes a simple HTML interface to browse and sort through the posts. It will save paid for content as long as you're subscribed to that substack. 🆕 @Firevvork has built a web version of this tool at Substack Reader - no installation required! (Works for free Substacks only.) Once you run the script, it will create a folder named after the substack in /substack md files , and then begin to scrape the substack URL, converting the blog posts into markdown files. Once all the posts have been saved, it will generate an HTML file in /substack html pages directory that allows you to browse the posts. You can either hardcode the substack URL and the number of posts you'd like to save into the top of the file, or specify them as command line arguments. Features - Converts Substack posts into Markdown files. - Generates an HTML file to browse Markdown files. - Supports free and premium content (with subscription). - Supports scraping a single post URL directly (for example, /p/my-post ). - Can download Substack-hosted images locally with --images . - The HTML interface allows sorting essays by date or likes. Installation Clone the repo and install the dependencies: For the premium scraper, set your Substack email and password with the SUBSTACK EMAIL and SUBSTACK PASSWORD environment variables: Alternatively, create a file named c","default_branch":null,"files":null,"tree":[],"storefront":"/r/timf34","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/timf34/Substack2Markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}