From 4c3c829a132f10f770e46ffce266ea69f1831d12 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Mon, 26 Aug 2024 16:15:41 +0800 Subject: [PATCH] add get from env SCHED_LINK --- download_slides.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download_slides.py b/download_slides.py index caaf680..196ec9f 100644 --- a/download_slides.py +++ b/download_slides.py @@ -21,8 +21,8 @@ def download_file(url, file_path, timeout=30): # Step 1: Find all topic links on the main page -topics_url = "https://kccncossaidevchn2024.sched.com/list/descriptions/" -# topics_url = "https://colocatedeventseu2024.sched.com/list/descriptions/" +default_topics_url = "https://kccncossaidevchn2024.sched.com/list/descriptions/" +topics_url = os.getenv('SCHED_LINK', default_topics_url) response = requests.get(topics_url) topic_soup = BeautifulSoup(response.text, "html.parser")