update du projet, xml collection enlevé et méthode fait maison ajouter

This commit is contained in:
Pontoporeia
2023-05-12 09:38:08 +02:00
parent 85a81079c1
commit 3ee32e17fa
2058 changed files with 837761 additions and 41938 deletions

16
data/cover/curl.sh Normal file
View 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