new (and better) version.
This commit is contained in:
32
update.py.example
Executable file
32
update.py.example
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/python3
|
||||
import tudown
|
||||
|
||||
user = ''
|
||||
passwd = ''
|
||||
|
||||
# +--------+
|
||||
# | Skript |
|
||||
# +--------+
|
||||
|
||||
url = 'http://wwwmayr.informatik.tu-muenchen.de/lehre/2015SS/theo/'
|
||||
|
||||
files = [
|
||||
('2015-theo\.pdf', 'Skript'),
|
||||
('2015-\d{2}-\d{2}\.pdf', 'Skript'),
|
||||
]
|
||||
|
||||
tudown.main(url, files)
|
||||
|
||||
# +-------+
|
||||
# | Übung |
|
||||
# +-------+
|
||||
|
||||
url = 'http://wwwmayr.informatik.tu-muenchen.de/lehre/2015SS/theo/uebung/'
|
||||
|
||||
files = [
|
||||
('ue\d*\.pdf', 'Übungsblätter'),
|
||||
('loesungen/lo\d*\.pdf', 'Lösungsblätter'),
|
||||
('theo15zue\d*_druck\.pdf', 'Skript/ZÜ'),
|
||||
]
|
||||
|
||||
tudown.main(url, files, user=user, passwd=passwd)
|
||||
Reference in New Issue
Block a user