From 9ac263a081a831e61577502aa8c6fa131da96151 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 9 Sep 2017 20:16:25 +0200 Subject: Récupération du lien de l’emploi du temps précédemment ciblé --- management/commands/scraptimetables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'management') diff --git a/management/commands/scraptimetables.py b/management/commands/scraptimetables.py index 8ce51f6..da8899c 100644 --- a/management/commands/scraptimetables.py +++ b/management/commands/scraptimetables.py @@ -32,7 +32,7 @@ class Command(BaseCommand): soup = get_xml(finder) for link in soup.find_all("a"): if "toutes sections et semestres confondus" in link.text: - print(year, name, link.text) + print(year, name, link.text, link.parent.parent.find("a", attrs={"class": "xmllink"})["href"]) def __get_finders(self, url): soup = get_xml(url) -- cgit v1.2.1