blob: 03b281a40280dc24d6651e41bf9a45a0b343e7fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
author: substring-before(substring-after(//div[@class='post-byline'], 'By '), ', on')
date: substring-after(//div[@class='post-byline'], ', on')
# for some reason, the following is producing a "no text [48]" error
#title: //div[@class='post-headline']
body: //div[contains(@class, 'post-bodycopy')]
# we solve the above issue by stripping out everything else we don't want
# these can probably all be removed if the body: command above worked
strip_id_or_class: reply
strip_id_or_class: left
strip_id_or_class: post-headline
strip_id_or_class: post-byline
strip_id_or_class: footer
test_url: http://www.uni-watch.com/2011/10/18/the-curious-case-of-steve-debergs-microphone-and-speaker/
|