simple program that uses puppeteer and basic API calls, to save all posts from a substack author to .pdf files.
- ensure you have bun installed (you can install it by running the following in your terminal
curl -fsSL https://bun.sh/install | bash
) bun install
(to install dependencies)- duplicate the
.env.example
file and create a file named.env
in the root of the repo and set values for the following variables:
EMAIL_ADDRESS
- your email address for your substack accountPASSWORD
- your password for your substack accountBASE_URL
- the base url for the substack that you want to download all the posts ofDOWNLOAD_FOLDER
- the path from this repo that leads to the folder that you want to save the posts in, each author will have its own sub-folder.
- run the script:
bun app.ts