-
Notifications
You must be signed in to change notification settings - Fork 2
/
douban.xml
133 lines (133 loc) · 7.95 KB
/
douban.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version="1.0" encoding="UTF-8"?>
<scraper framework="1.1" date="2013-05-21">
<NfoUrl dest="3">
<RegExp input="$$1" output="<details><url function="GetUrlByIMDBId">http://movie.douban.com/j/subject_suggest?q=tt\1</url><details>" dest="3">
<expression>imdb....?/title/tt([0-9]*)</expression>
</RegExp>
<RegExp input="$$1" output="<details><url function="GetUrlByIMDBId">http://movie.douban.com/j/subject_suggest?q=tt\1</url><details>" dest="3+">
<expression>imdb....?/Title\?([0-9]*)</expression>
</RegExp>
</NfoUrl>
<GetUrlByIMDBId dest="3">
<RegExp input="$$1" output="<details><url>https://api.douban.com/v2/movie/subject/\1</url><id>\1</id><details>" dest="3">
<expression>"url":"http:\\/\\/movie.douban.com\\/subject\\/([0-9]+)\\/[^"]*"</expression>
</RegExp>
</GetUrlByIMDBId>
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="<url>https://api.douban.com/v2/movie/search?q=\1</url>" dest="3">
<expression noclean="1"/>
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="8">
<RegExp input="$$3" output="<results sorted="yes">\1</results>" dest="8">
<RegExp input="$$1" output="<entity><title>\1 - \2 (\3)</title><url>https://api.douban.com/v2/movie/subject/\4</url><id>\4</id></entity>" dest="3+">
<expression repeat="yes">"title": "([^"]*)", "casts": \[[^\]]*\], "collect_count": [0-9]*, "original_title": "([^"]*)", "subtype": "movie", "directors": \[[^\]]*\], "year": "(\d*)", "images": \{[^\}]*\}, "alt": "[^"]*", "id": "(\d*)"</expression>
</RegExp>
<expression noclean="1" fixchars="1"/>
</RegExp>
</GetSearchResults>
<GetDetails dest="3">
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<RegExp input="$$2" output="<id>\1</id>" dest="5">
<expression/>
</RegExp>
<RegExp input="$$1" output="<title>\1</title>" dest="5+">
<expression noclean="1" fixchars="1">"title": "(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="<originaltitle>\1</originaltitle><title>\1</title>" dest="5+">
<expression noclean="1" fixchars="1">"original_title": "(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="<year>\1</year>" dest="5+">
<expression noclean="1">"year": "(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="<votes>\1</votes>" dest="5+">
<expression noclean="1">"ratings_count": (\d+)</expression>
</RegExp>
<RegExp input="$$1" output="<rating>\1</rating>" dest="5+">
<expression noclean="1">"average": ([\d\.]+)</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
<expression noclean="1">"genres": \[(.+?)\]</expression>
</RegExp>
<RegExp input="$$8" output="<genre>\1</genre>" dest="5+">
<expression noclean="1" repeat="yes" fixchars="1">"(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
<expression noclean="1">"countries": \[(.+?)\]</expression>
</RegExp>
<RegExp input="$$8" output="<country>\1</country>" dest="5+">
<expression noclean="1" repeat="yes" fixchars="1">"(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="<plot>\1</plot>" dest="5+">
<expression noclean="1" fixchars="1">"summary": "(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
<expression noclean="1" clear="yes" fixchars="1">"directors": \[(.+?)\]</expression>
</RegExp>
<RegExp input="$$8" output="<director>\1</director>" dest="5+">
<expression noclean="1" repeat="yes">"name": "(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
<expression noclean="1" clear="yes" fixchars="1">"writers": \[(.+?)\]</expression>
</RegExp>
<RegExp input="$$8" output="<credits>\1</credits>" dest="5+">
<expression noclean="1" repeat="yes">"name": "(.+?)"</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
<expression noclean="1" clear="yes" fixchars="1">"casts": \[(.+?)\]</expression>
</RegExp>
<RegExp input="$$8" output="<actor><thumb>https://\2/view/celebrity/s_ratio_celebrity/public/\3.jpg</thumb><name>\4</name></actor>" dest="5+">
<expression noclean="1" repeat="yes">"avatars": (null|.*?"large": "https://(.+?)\\/view\\/celebrity\\/s_ratio_celebrity\\/public\\/(.+?).jpg"[^\}]*\}), "name": "(.+?)"</expression>
</RegExp>
<RegExp input="$$2" output="<url cache="\1-poster.html" function="GetPoster">https://movie.douban.com/subject/\1/photos?type=R</url>" dest="5+">
<expression/>
</RegExp>
<RegExp conditional="!tmdbfanart" input="$$2" output="<url cache="\1-fanart.html" function="GetFanart">https://movie.douban.com/subject/\1/photos?type=S</url>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$2" output="<url function="GetDetailsByIMDBId">http://movie.douban.com/subject/\1</url>" dest="5+">
<expression/>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetDetails>
<GetDetailsByIMDBId dest="5">
<RegExp input="$$6" output="<details>\1</details>" dest="5">
<RegExp conditional="trailer" input="$$1" output="<trailer>http://movie.douban.com/trailer/video_url?tid=\1</trailer>" dest="6">
<expression>https://movie.douban.com/trailer/([0-9]+)</expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
<expression noclean="1">编剧</span>:(.*?)</span></expression>
</RegExp>
<RegExp input="$$8" output="<credits>\1</credits>" dest="6+">
<expression repeat="yes"><a href=[^>]*>(.*?)</a></expression>
</RegExp>
<RegExp input="$$1" output="\1" dest="8">
<expression>http://www.imdb.com/title/(tt[0-9]+)</expression>
</RegExp>
<RegExp conditional="tmdbthumbs" input="$$8" output="<chain function="GetTMDBThumbsByIdChain">\1::zh</chain>" dest="6+">
<expression/>
</RegExp>
<RegExp conditional="tmdbfanart" input="$$8" output="<chain function="GetTMDBFanartByIdChain">\1::zh</chain>" dest="6+">
<expression/>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetDetailsByIMDBId>
<GetPoster dest="5">
<RegExp input="$$6" output="<details>\1</details>" dest="5">
<RegExp input="$$1" output="<thumb aspect="poster" preview="\1thumb\2">\1raw\2|Referer=http://movie.douban.com/</thumb>" dest="6">
<expression repeat="yes" noclean="1,2"><div class="cover">\s*<a href="https://movie.douban.com/photos/photo/[0-9]+/">\s*<img src="(https://[^/]+/view/photo/)m(/public/[^\.]+\.jpg)" /></expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetPoster>
<GetFanart dest="5">
<RegExp input="$$6" output="<details><fanart>\1</fanart></details>" dest="5">
<RegExp input="$$1" output="<thumb preview="\1thumb\2">\1raw\2|Referer=http://movie.douban.com/</thumb>" dest="6">
<expression repeat="yes" noclean="1,2"><div class="cover">\s*<a href="https://movie.douban.com/photos/photo/[0-9]+/">\s*<img src="(https://[^/]+/view/photo/)m(/public/[^\.]+\.jpg)" /></expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetFanart>
</scraper>