1 # Example hooks file to go with watch.py
2 # You can see which filter you want to apply using the URL
3 # parameter and you can use the "re" module to search for
4 # the part that you want to filter, so the noise is removed.
9 if url
== 'http://www.inso.tuwien.ac.at/lectures/usability/':
10 return re
.sub('.*TYPO3SEARCH_end.*', '', data
)
11 elif url
== 'https://www.auto.tuwien.ac.at/courses/viewDetails/11/':
12 return re
.sub('</html><!-- \d+ -->', '', data
)