-
Notifications
You must be signed in to change notification settings - Fork 0
/
question-page.take
27 lines (22 loc) · 1.02 KB
/
question-page.take
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
27
def: poster
$ .user-details a
| text ; : user_login
| [href] ; : user_url
$ .user-action-time span | [title] ; : date
def: comments
$ .comments .comment-body
save each : comments
$ .comment-user
| text ; : user_login
| [href] ; : user_url
$ .comment-date span | [title] ; : date
# get poster and comments for the question
$ .question ; + : question
$ .postcell .post-signature.owner
poster ; : asked_by
comments ; >> : comments
# get poster and comments for each answer
$ #answers .answer ; save each : answers
$ .answercell .user-info | -1
poster ; : answered_by
comments ; >> : comments