blob: 3422860460cbe657433866a5e05c773a2f59419b (
plain)
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
|
<?xml version="1.0" encoding="windows-1251" standalone="yes"?>
<scraper framework="1.1" date="2009-09-13" content="movies" name="World Art Movies" thumb="worldart.gif" language="ru">
<include>common/tmdb.xml</include>
<include>common/imdb.xml</include>
<GetSettings dest="3">
<RegExp input="$$5" output="<settings>\1</settings>" dest="3">
<RegExp input="$$1" output="<setting label="Ïîñòåð èç TMDB (Èíà÷å ñòàíäàðòíûé)" type="bool" id="thepos" default="true"></setting>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$1" output="<setting label="Ôàíàðò èç TMDB" type="bool" id="fanart" default="true"></setting>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$1" output="<setting label="Àêòåðû èç IMDB (Ðåêîìåíäîâàííî)" type="bool" id="imdbcast" default="true"></setting>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$1" output="<setting label="Äèðåêòîð èç IMDB" type="bool" id="imdbdir" default="false"></setting>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$1" output="<setting label="Ñöåíàðèñòû èç IMDB" type="bool" id="imdbcred" default="false"></setting>" dest="5+">
<expression/>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetSettings>
<CreateSearchUrl dest="3" SearchStringEncoding="CP1251">
<RegExp input="$$1" output="http://www.world-art.ru/search.php?name=\1&global_sector=all" dest="3">
<expression noclean="1"/>
</RegExp>
</CreateSearchUrl>
<GetSearchResults dest="8">
<RegExp input="$$5" output="<?xml version="1.0" encoding="windows-1251" standalone="yes"?><results>\1</results>" dest="8">
<RegExp input="$$1" output="<entity><title>\4</title><url>http://www.world-art.ru/\1/\1.php?id=\3</url><id>\3</id></entity>" dest="5+">
<expression repeat="yes">"([^/]+)/([^=]+)=([^"]+)" class='estimation'>([^<]+)<</expression>
</RegExp>
<RegExp input="$$1" output="<entity><title>Exact match</title><url>http://www.world-art.ru/\1</url></entity>" dest="5+">
<expression repeat="yes"><meta http-equiv='[Rr]efresh'[^>]*url=/([^']+)'</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetSearchResults>
<GetDetails dest="3">
<RegExp input="$$5" output="<details>\1</details>" dest="3">
<!-- ID -->
<RegExp input="$$1" output="\1" dest="2">
<expression>id=([^"]+)"</expression>
</RegExp>
<RegExp input="$$2" output="<id>\1</id>" dest="5">
<expression/>
</RegExp>
<!-- TITLE -->
<RegExp input="$$1" output="<title>\1</title>" dest="5+">
<expression trim="1"><h1 class='h1'[^>]*>([^<]+)</h1></expression>
</RegExp>
<!-- TYPE -->
<RegExp input="$$1" output="\1" dest="7">
<expression trim="1">/([^/]+)/review.php</expression>
</RegExp>
<!-- MPAA -->
<RegExp input="$$1" output="<url cache="\1-imdb.html" function="MPAA">http://www.imdb.com/title/tt\1</url>" dest="5+">
<expression>imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<!-- TOP250 -->
<RegExp input="$$1" output="<url cache="\1-imdb.html" function="TOP">http://www.imdb.com/title/tt\1</url>" dest="5+">
<expression>imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<!-- YEAR -->
<RegExp input="$$1" output="<year>\1</year>" dest="5+">
<expression>year=([^"']+)["']</expression>
</RegExp>
<!-- RUNTIME -->
<RegExp input="$$1" output="<runtime>\1 min</runtime>" dest="5+">
<expression noclean="1">ïîëíîìåòðàæíûé ôèëüì, ([^ì]+) ìèí</expression>
</RegExp>
<RegExp input="$$1" output="<url cache="\1-imdb.html" function="RUNTIME">http://www.imdb.com/title/tt\1</url>" dest="5+">
<expression noclean="1" clear="no">imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<!-- RATING -->
<RegExp input="$$1" output="<url function="GetRating">http://www.world-art.ru/$$7/votes_history.php?id=$$2</url>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$1" output="<url cache="\1-imdb.html" function="GetRatingAndVotes">http://www.imdb.com/title/tt\1</url>" dest="5+">
<expression noclean="1" clear="no">imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<!-- GENRE -->
<RegExp input="$$1" output="<genre>\2</genre>" dest="5+">
<expression repeat="yes">genre=([^>]+)>([^<]+)<</expression>
</RegExp>
<!-- STUDIO -->
<RegExp input="$$1" output="<url function="GetStudios">http://www.world-art.ru/$$7/$$7_full_production.php?id=$$2</url>" dest="5+">
<expression/>
</RegExp>
<RegExp input="$$1" output="<url cache="\1-imdb.html" function="GetIMDBStudios">http://www.imdb.com/title/tt\1</url>" dest="5+">
<expression noclean="1" clear="no">imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<!-- DIRECTORS, WRITERS, ACTORS -->
<RegExp conditional="!imdbcast" input="$$1" output="<url function="GetPeople">http://www.world-art.ru/$$7/$$7_full_cast.php?id=$$2</url>" dest="5+">
<expression/>
</RegExp>
<RegExp conditional="!imdbdir" input="$$1" output="<url function="GetDirector">http://www.world-art.ru/$$7/$$7_full_cast.php?id=$$2</url>" dest="5+">
<expression/>
</RegExp>
<RegExp conditional="!imdbcred" input="$$1" output="<url function="GetCredits">http://www.world-art.ru/$$7/$$7_full_cast.php?id=$$2</url>" dest="5+">
<expression/>
</RegExp>
<RegExp conditional="imdbcast" input="$$1" output="<url cache="\1-fullcredits.html" function="GetIMDBCast">http://www.imdb.com/title/tt\1/fullcredits</url>" dest="5+">
<expression noclean="1" clear="no">imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<RegExp conditional="imdbdir" input="$$1" output="<url cache="\1-fullcredits.html" function="GetIMDBDirectors">http://www.imdb.com/title/tt\1</url>" dest="5+">
<expression noclean="1" clear="no">imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<RegExp conditional="imdbcred" input="$$1" output="<url cache="\1-fullcredits.html" function="GetIMDBWriters">http://www.imdb.com/title/tt\1</url>" dest="5+">
<expression noclean="1" clear="no">imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<!-- OUTLINE, PLOT -->
<RegExp input="$$1" output="\1&#133;&hellip;&laquo;&#151;&mdash;&nbsp;" dest="9">
<expression noclean="1"><p align=justify class='review'>[\t\n]*(.*?)[\t\n]*</p></expression>
</RegExp>
<RegExp input="$$9" output="<outline>\1</outline><plot>\1</plot>" dest="5+">
<RegExp input="$$9" output="\1 " dest="9">
<expression noclean="1" repeat="yes">(.*?)&nbsp;</expression>
</RegExp>
<RegExp input="$$9" output="\1-" dest="9">
<expression noclean="1" repeat="yes">(.*?)&mdash;</expression>
</RegExp>
<RegExp input="$$9" output="\1-" dest="9">
<expression noclean="1" repeat="yes">(.*?)&#151;</expression>
</RegExp>
<RegExp input="$$9" output="\1"" dest="9">
<expression noclean="1" repeat="yes">(.*?)&[lr]aquo;</expression>
</RegExp>
<RegExp input="$$9" output="\1..." dest="9">
<expression noclean="1" repeat="yes">(.*?)&hellip;</expression>
</RegExp>
<RegExp input="$$9" output="\1..." dest="9">
<expression noclean="1" repeat="yes">(.*?)&#133;</expression>
</RegExp>
<expression trim="1">(.*)\.{3}?</expression>
</RegExp>
<!-- THUMBS -->
<RegExp conditional="!thepos" input="$$1" output="<url function="GetCoverThumbs">http://www.world-art.ru/$$7/$$7_poster.php?id=$$2</url>" dest="5+">
<expression/>
</RegExp>
<RegExp conditional="thepos" input="$$1" output="<url function="GetTMDBThumbsByIMDBId">http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt\1&amp;api_key=57983e31fb435df4df77afb854740ea9</url>" dest="5+">
<expression noclean="1" clear="no">imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<!-- FANART -->
<RegExp conditional="fanart" input="$$1" output="<url function="GetTMDBFanartByIMDBId">http://api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt\1&amp;api_key=57983e31fb435df4df77afb854740ea9</url>" dest="5+">
<expression>imdb.com/title/tt([0-9]*)</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetDetails>
<!-- MPAA -->
<MPAA dest="5">
<RegExp input="$$1" output="<details><mpaa>\1</mpaa></details>" dest="5+">
<expression trim="1">MPAA</a>:</h5>(.[^<]*)</expression>
</RegExp>
</MPAA>
<!-- TOP250 -->
<TOP dest="5">
<RegExp input="$$1" output="<details><top250>\1</top250></details>" dest="5+">
<expression trim="1">Top 250: #([0-9]*)</a></expression>
</RegExp>
</TOP>
<!-- RUNTIME -->
<RUNTIME dest="5">
<RegExp input="$$1" output="<details><runtime>\1</runtime></details>" dest="5+">
<expression trim="1"><h5>Runtime:</h5>[^0-9]*([^<]*)</expression>
</RegExp>
</RUNTIME>
<!-- RATINGS -->
<GetRating dest="5">
<RegExp input="$$1" output="<details><rating>\1</rating><votes>10</votes></details>" dest="5+">
<expression trim="1">Ñðåäíèé ðåéòèíã:</b> ([^,]+),</expression>
</RegExp>
</GetRating>
<GetRatingAndVotes dest="5">
<RegExp input="$$1" output="<details><rating>\1</rating><votes>\2</votes></details>" dest="5+">
<expression trim="1"><b>([0-9.]+)/10</b>[^<]*<a href="ratings" class="tn15more">([0-9,]+) votes</a></expression>
</RegExp>
</GetRatingAndVotes>
<!-- STUDIOS -->
<GetStudios dest="5">
<RegExp input="$$1" output="<details><studio>\1</studio></details>" dest="5+">
<expression repeat="yes">class='estimation'>([^<]+)<</expression>
</RegExp>
</GetStudios>
<GetIMDBStudios dest="5">
<RegExp input="$$1" output="<details><studio>\1</studio></details>" dest="5+">
<expression repeat="yes">"/company/[^/]*/">([^<]*)</a></expression>
</RegExp>
</GetIMDBStudios>
<!-- ACTORS -->
<GetPeople dest="10">
<RegExp input="$$7" output="<details>\1</details>" dest="10">
<RegExp input="$$1" output="\1" dest="8">
<expression noclean="1">(?:Ðîëè èñïîëíÿëè:| ðîëÿõ:|Ðîëè îçâó÷èâàëè:)(.*?)bgcolor=#5D0E0E</expression>
</RegExp>
<RegExp input="$$8" output="<actor><name>\1</name></actor>" dest="7">
<expression repeat="yes">class='estimation'>([^<]+)<</expression>
</RegExp>
<RegExp input="$$8" output="<actor><name>\1</name><role>\2</role></actor>" dest="7">
<expression repeat="yes">class='estimation'>([^<]+)<.*?&#151;([^<]+)<</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetPeople>
<!-- DIRECTORS -->
<GetDirector dest="5">
<RegExp input="$$7" output="<details>\1</details>" dest="5+">
<RegExp input="$$8" output="<director>\1</director>" dest="7+">
<RegExp input="$$1" output="\1" dest="8+">
<expression noclean="1"> color=#990000(.*?) color=#990000</expression>
</RegExp>
<expression repeat="yes">class='estimation'>([^<]+)<</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetDirector>
<!-- WRITERS -->
<GetCredits dest="5">
<RegExp input="$$7" output="<details>\1</details>" dest="5+">
<RegExp input="$$8" output="<credits>\1</credits>" dest="7+">
<RegExp input="$$1" output="\1" dest="8+">
<expression noclean="1">Ñöåíàðèé:(.*?):</b></expression>
</RegExp>
<expression repeat="yes">class='estimation'>([^<]+)<</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetCredits>
<!-- POSTERS -->
<GetCoverThumbs dest="5">
<RegExp input="$$8" output="<details>\1</details>" dest="5+">
<RegExp input="$$1" output="\1" dest="7">
<expression trim="1">/([^/]+)/review.php</expression>
</RegExp>
<RegExp input="$$1" output="<thumb preview="http://www.world-art.ru/$$7/img/\1/\3/\4.jpg">http://www.world-art.ru/$$7/img/\1/\3/\4.jpg</thumb>" dest="8+">
<expression repeat="yes" noclean="1">img/converted_images_(.*?)/(.*?)/(.*?)-(.*?)-(.*?)</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>
</GetCoverThumbs>
</scraper>
|