update du projet, xml collection enlevé et méthode fait maison ajouter
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 378 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 4.7 MiB |
|
After Width: | Height: | Size: 560 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
After Width: | Height: | Size: 9.9 MiB |
|
After Width: | Height: | Size: 196 KiB |
@@ -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
|
||||
|
After Width: | Height: | Size: 4.5 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 10 MiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 360 KiB |
|
After Width: | Height: | Size: 4.9 MiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 642 KiB |
|
After Width: | Height: | Size: 348 KiB |
|
After Width: | Height: | Size: 311 KiB |
|
After Width: | Height: | Size: 424 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 371 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 954 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 303 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 572 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 382 KiB |
|
After Width: | Height: | Size: 235 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 611 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 252 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 943 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 695 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 478 KiB |
@@ -0,0 +1,39 @@
|
||||
import os
|
||||
import sys
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
from urllib.parse import urljoin, urlparse
|
||||
import urllib.request
|
||||
|
||||
def main(url):
|
||||
try:
|
||||
response = requests.get(url, headers={"User-Agent": "Mozilla/5.0"})
|
||||
response.raise_for_status()
|
||||
except requests.exceptions.RequestException as e:
|
||||
print(f"Error: {e}")
|
||||
sys.exit(1)
|
||||
|
||||
soup = BeautifulSoup(response.text, 'html.parser')
|
||||
images = soup.find_all('img')
|
||||
|
||||
if not os.path.exists("images"):
|
||||
os.makedirs("images")
|
||||
|
||||
for image in images:
|
||||
img_src = image.get('src')
|
||||
img_url = urljoin(url, img_src)
|
||||
local_filename = urlparse(img_url).path.split('/')[-1]
|
||||
|
||||
try:
|
||||
urllib.request.urlretrieve(img_url, os.path.join("images", local_filename))
|
||||
print(f"Downloaded {img_url}")
|
||||
except Exception as e:
|
||||
print(f"Error downloading {img_url}: {e}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: python script.py <URL>")
|
||||
sys.exit(1)
|
||||
|
||||
url = sys.argv[1]
|
||||
main(url)
|
||||
|
After Width: | Height: | Size: 216 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 4.1 MiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 5.4 MiB |
|
After Width: | Height: | Size: 828 KiB |
|
After Width: | Height: | Size: 319 KiB |
|
After Width: | Height: | Size: 366 KiB |
|
After Width: | Height: | Size: 38 KiB |
@@ -0,0 +1,20 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/vasseur-lauryn-2023.jpg'
|
||||
files:
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/UdeM_Guide-ecriture-inclusive.pdf'
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/undefinedMega_2023-04-24.pdf'
|
||||
@@ -0,0 +1,20 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/patrolin-aurore-2021.jpg'
|
||||
files:
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/UdeM_Guide-ecriture-inclusive.pdf'
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/undefinedMega_2023-04-24.pdf'
|
||||
@@ -0,0 +1,20 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/maguet-killian-2022.jpg'
|
||||
files:
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/UdeM_Guide-ecriture-inclusive.pdf'
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/undefinedMega_2023-04-24.pdf'
|
||||
@@ -0,0 +1,20 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/lampaert-sarah-2022.png'
|
||||
files:
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/UdeM_Guide-ecriture-inclusive.pdf'
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/undefinedMega_2023-04-24.pdf'
|
||||
@@ -0,0 +1,19 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/raupp-manon-2016.jpg'
|
||||
files:
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/'
|
||||
@@ -0,0 +1,19 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/conseil-social.jpeg'
|
||||
files:
|
||||
- 'data/content/2024/Théophile Gervreau-Mercier/mov_bbb.mp4'
|
||||
@@ -0,0 +1,20 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/dubreuil-coralie-2022.jpg'
|
||||
files:
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/UdeM_Guide-ecriture-inclusive.pdf'
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/undefinedMega_2023-04-24.pdf'
|
||||
@@ -0,0 +1,20 @@
|
||||
auteurice: 'Théophile Gervreau-Mercier'
|
||||
année: '2025'
|
||||
email: something@erg.school
|
||||
titre: 'L'art d'une hygiène de vie numérique'
|
||||
tag:
|
||||
- art
|
||||
- numérique
|
||||
- sociologie
|
||||
- pratique
|
||||
- collective
|
||||
- indiviuelle
|
||||
promoteurice: 'Nicholas Hulot'
|
||||
problématique: 'le monde'
|
||||
description: "Look around you. In the 7th Cavalry, we got a Captain from the Ukraine. Another from Puerto Rico. We've got Japanese, Chinese, Blacks, Hispanics, Cherokee Indians, Jews and Gentiles - all Americans. Now here in the States, some men in this unit may experience discrimination because of race or creed. But for you and me now, all that is gone. We're moving into the valley of the shadow of death, where you will watch the back of the man next to you, as he will watch yours. And you won't care what color he is or by what name he calls God. They say we're leavin' home. We're goin' to what home was always supposed to be. So let us understand the situation. We are goin' into battle against a tough and determined enemy. I can't promise you that I will bring you all home alive. But this I swear before you and before Almighty God that when we go into battle, I will be the first to set foot on the field, and I will be the last to step off. And I will leave no one behind. Dead or alive, we will all come home together. So help me God."
|
||||
orientation: Vidéographie
|
||||
ap: DPM
|
||||
couverture: 'data/cover/thirion-gaetan-2021.jpg'
|
||||
files:
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/UdeM_Guide-ecriture-inclusive.pdf'
|
||||
- 'data/content/2025/Théophile Gervreau-Mercier/undefinedMega_2023-04-24.pdf'
|
||||