update du projet, xml collection enlevé et méthode fait maison ajouter
This commit is contained in:
16
data/cover/curl.sh
Normal file
16
data/cover/curl.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Download the index page and convert local links to global links
|
||||
url="https://www.memo-dg.fr/"
|
||||
curl $url > index.html
|
||||
|
||||
# Extract the image URLs from the downloaded HTML file
|
||||
cat index.html | grep img | grep -Po 'src="\K.*?(?=")' | sed 's/\?.*//' > links.txt
|
||||
|
||||
# Download all the images using curl
|
||||
while read -r file; do
|
||||
curl -s -O $file
|
||||
done < links.txt
|
||||
|
||||
# Clean up
|
||||
rm index.html links.txt
|
||||
Reference in New Issue
Block a user