Add university content

This commit is contained in:
2025-09-26 11:16:23 +02:00
parent 45054aef03
commit 76bbd2e5ad
125 changed files with 230 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
[package]
name = "get_bac_subject"
version = "0.1.0"
edition = "2021"
[dependencies]
reqwest = { version = "0.11", features = ["blocking"] }

View File

@@ -0,0 +1,19 @@
fn download_file(url: &str, output_path: &str) -> Result<(), Box<dyn std::error::Error>> {
let response = get(url)?;
if !response.status().is_success()
let mut dest = File::create(Path::new(output_path))?;
let mut content = response;
copy(&mut content, &mut dest)?;
println!("📥 Downloaded: {}{}", url, output_path);
Ok(())
}
fn main() {
let url = "https://drive.proton.me/urls/XZ780G6P1M#kXUbcVjBlXPJ";
let output = "sujets.zip";
if let Err(e) = download_file(url, output) {
eprintln!("❌ Erreur: {}", e);
}
}

View File

@@ -0,0 +1 @@
https://drive.proton.me/urls/XZ780G6P1M#kXUbcVjBlXPJ