This project is a Node.js script designed to download the HTML content of a Carrd website and save it to your local machine.
- Fetches HTML content from a specified Carrd URL.
- Saves the HTML content to a local directory.
- Easily configurable via environment variables.
- Clone the repository:
git clone https://github.com/your-username/carrd-downloader.git cd carrd-downloader npm install - Set up environment variables: Create a .env file in the root directory of your project and add the following content:
CARRD_URL=https://your-carrd-site-url.com
USER_EMAIL=your-email@example.com
USER_PASSWORD=your-passwordReplace the placeholder values with your actual Carrd URL, email, and password.
- Add .env to .gitignore (if not already added):
echo ".env" >> .gitignore- Usage Run the script:
node index.jsThe script will fetch the HTML content from the specified Carrd URL and save it to the ./public directory.
- Output The downloaded HTML content will be saved in the public/index.html file.