aboutsummaryrefslogtreecommitdiff
path: root/management/commands/scraptimetables.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-09 20:16:25 +0200
committerAlban Gruin2017-09-09 20:16:25 +0200
commit9ac263a081a831e61577502aa8c6fa131da96151 (patch)
treefb1d66a33370b1fe653eeda21a6370448251d297 /management/commands/scraptimetables.py
parent5352d2eb1d787d76971a02c40f6691ca1b74bc13 (diff)
Récupération du lien de l’emploi du temps précédemment ciblé
Diffstat (limited to 'management/commands/scraptimetables.py')
-rw-r--r--management/commands/scraptimetables.py2
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)