Hegre Media Downloader allows you to download a list of contents by providing a file containing a list of URLs.
This tool is distributed for educational purposes, and we are not responsible for any abuse that may occur.
- First, decide what content you want to download. You can download single items, a list of items, a whole year, or the whole site.
Example URLs :
- All Movies : https://www.hegre.com/movies
- All Galleries : https://www.hegre.com/photos
- All 2022 : https://www.hegre.com/?year=2022
- All 2022 Galleries : https://www.hegre.com/?types=Gallery&year=2022
- All 2020 Movies : https://www.hegre.com/?types=Films&year=2022
- Search Results : https://www.hegre.com/?q=beach
- Search Results, Film Only : https://www.hegre.com/?q=beach&types=Film
If you have a custom list, add it to a text file in the same directory as the script.
- When you are done, you need to go to your terminal and download the dependency if you haven't already done so.
sudo apt install pv screen whiptail
sudo yum install pv screen newt
To use this tool, simply download the script and follow these steps.
wget https://github.com/baptiste313/hegre-media-downloader/raw/main/hegre-media-downloader.sh
bash hegre-media-downloader.sh --url https://www.hegre.com/?year=2022 --create-links yes --thumbnail yes --download
In the default configuration, the script also fetches the thumbnails.
If you need, the images are the same name as the video file you can use its two commands after the end of the download.
for line in *.mp4; do printf "%s\n" "$line"; done | sed 's/.mp4/.jpg/' > new_name.txt
paste -d' ' <(ls *.jpg) new_name.txt | xargs -n2 echo
If you have a suggestion that would make this better, please fork the repo and create a pull request. Don't forget to give the project a star! Thanks again!