This script downloads PDF documents related to the JFK assassination from the National Archives website.
-
Clone the repository:
git clone git@github.com:simon-msdos/jfk.git cd jfk -
Make the script executable:
chmod +x curl.sh
-
Run the script:
./curl.sh
The script will create a downloads directory and download all the PDF files listed on the National Archives JFK release page.
The script performs the following steps:
- Defines color variables for output messages.
- Creates a
downloadsdirectory if it doesn't exist. - Fetches the list of PDF links from the National Archives JFK release page.
- Iterates over each link, constructs the full URL, and downloads the PDF file to the
downloadsdirectory. - Displays progress and completion messages with colors.
Downloading: 104-10003-10041.pdf
######################################################################## 100.0%
Done
Downloading: 104-10004-10143.pdf
######################################################################## 100.0%
Done
...
Download complete! Files are in the downloads directory.