This PowerShell script downloads images from Prothom Alo ePaper website and converts them into a PDF file using ImageMagick.
- Windows OS
- PowerShell
- ImageMagick (Please download and install ImageMagick from here)
Open PowerShell/Terminal as Admin then run this Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
before running the script.
- Clone or download the script to your local machine.
- Open PowerShell/Terminal and navigate to the directory containing the script.
- Run the script by typing
.\run.ps1
and hitting Enter.
- Downloads website HTML source.
- Extracts image links from the HTML source.
- Downloads images from the extracted links.
- Converts downloaded images to a PDF file.
run.ps1
: The main PowerShell script file.output/
: Folder where the generated PDF file is stored.temp/
: Temporary folder where intermediate files are stored during script execution.
.\run.ps1