diff options
author | Alban Gruin | 2017-09-09 20:16:25 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-09 20:16:25 +0200 |
commit | 9ac263a081a831e61577502aa8c6fa131da96151 (patch) | |
tree | fb1d66a33370b1fe653eeda21a6370448251d297 | |
parent | 5352d2eb1d787d76971a02c40f6691ca1b74bc13 (diff) |
Récupération du lien de l’emploi du temps précédemment ciblé
-rw-r--r-- | management/commands/scraptimetables.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |