A small cli tool that downloads the public posts from a substack newsletter and saves them locally.
substack-dl url save-dir [--overwrite] [--fmt-html] [--fmt-all]
Argument | What it does |
---|---|
url |
The substack domain <domain>.substack.com |
save-dir |
The local directory where posts should be saved. If the directory doesn't exist, it will be created. |
--overwrite |
Automatically overwrite existing directory (be careful). |
--fmt-html |
Store HTML versions instead of Markdown. |
--fmt-all |
Store HTML and Markdown versions. |
substack-dl nosaj.substack.com ~/save_posts_location --overwrite --fmt-all
- Download and parse posts.
- Save posts to disk as markdown files.
- Unit tests for fs operations.
- Implement non-tmp functionality.
- Implement overwrite flags.
- Implement HTML save.
- Implement format flags.