-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_config.py
More file actions
26 lines (21 loc) · 954 Bytes
/
Copy pathsample_config.py
File metadata and controls
26 lines (21 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from os.path import abspath, dirname, join
from tracker import Tracker
from selectors import FindAll
from checkers import Diff, Filechange
home = dirname(abspath(__file__))
cache_dir = join(home,'.websitecheck')
target_address=""
# HTML parsers supported by BeautifulSoup:
# html.parser
# lxml
# html5lib
# Currently, there is a bug associated to html5lib
html_parser="html.parser"
sites = []
# Sample tracker configuration:
#
#wi = Tracker("weighted_inequalities", "http://www.math.uni-bonn.de/ag/ana/SoSe2017/weights/", [FindAll(id="col1_content"),Diff(),Filechange('pdf'),Filechange('djvu')])
#aae = Tracker("app_alg_exercise", "http://www.or.uni-bonn.de/lectures/ss17/appr_ss17_ex.html", [FindAll(["body","ul"]),Diff(),Filechange('pdf')])
#st = Tracker("models_of_set_theory", "http://www.math.uni-bonn.de/ag/logik/teaching/2017SS/Models_of_set_theory_1.shtml", [FindAll(id="content"),Diff(),Filechange('pdf')])
#
#sites = [ wi, aae, st ]