-
Notifications
You must be signed in to change notification settings - Fork 0
/
4.xml
50 lines (48 loc) · 2.11 KB
/
4.xml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0"?>
<conf>
<define>
<regex name="find_id" value="^.*?(\d+).*?$" target="1" mode="DOTALL"/>
<regex name="uid" value=".*uid=([^&]+)(&|$)" target="1" mode="DOTALL"/>
<regex name="nick" value=".*nick=([^&]+)(&|$)" target="1" mode="DOTALL"/>
<regex name="sex" value=".*sex=([^&]+)(&|$)" target="1" mode="DOTALL"/>
<regex name="title_filter" value="视频:(.*)$" target="1" mode="DOTALL"/>
</define>
<page>
<wrap selector=".base .base_info">
<field name="title" selector="h1" action="text|regex(title_filter)" />
<loop name="category" selector=".crumbs a">
<field name="name" action="text" />
<field name="href" action="attr(href)" />
</loop>
</wrap>
<wrap selector=".yk-videoinfo">
<field name="description" selector=".text" action="text | strip" />
<field name="time" selector=".time" action="text | strip" />
</wrap>
<wrap selector=".yk-uploadinfo .yk-userinfo">
<wrap selector="a.userName">
<field name="username" action="text | strip" />
<field name="user_href" action="attr(href)" />
</wrap>
<field name="time" selector=".time" action="text | strip" />
</wrap>
<wrap selector="#videocomment">
<field name="comment_count" selector="#allnum_cmt" action="text|regex(find_id)|default(0)|int" />
</wrap>
<loop name="comments" selector="#Comments .comment">
<field name="id" action="attr(id)|regex(find_id)|int" />
<wrap selector=".bar a">
<field name="user_href" action="attr(href)"/>
<field name="user_name" action="text"/>
</wrap>
<field name="content" selector=".text p" action="text"/>
<wrap selector=".panel">
<field name="time" selector=".timestamp" action="text"/>
<field name="via" selector=".via em" action="text | strip"/>
</wrap>
</loop>
<field name="up_count" selector="#upVideoTimes" action="text | int"/>
<field name="down_count" selector="#downVideoTimes" action="text | int"/>
<field name="pv_count" selector="#videoTotalPV em" action="text | int"/>
</page>
</conf>