-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathifdb.xml
112 lines (89 loc) · 6.63 KB
/
ifdb.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
<?xml version="1.0" encoding="utf-8"?>
<scraper framework="1.1" date="2015-01-30" content="movies">
<CreateSearchUrl clearbuffers="no" dest="3">
<RegExp input="$$1" output="<url>http://ifdb.fanedit.org/fanedit-search/search-results/?query=all&scope=title&keywords=\1&order=alpha</url>" dest="3">
<expression noclean="1" />
</RegExp>
</CreateSearchUrl>
<NfoUrl dest="3">
<RegExp input="$$1" output="\1" dest="3">
<expression></expression>
</RegExp>
</NfoUrl>
<GetSearchResults dest="8">
<RegExp input="$$5" output="<results>\1</results>" dest="8">
<!--Normal Search-->
<RegExp input="$$1" output="<entity><title>\2</title><url>http:\/\/ifdb.fanedit.org/?p=\1</url></entity>" dest="5">
<expression noclean="1" repeat="yes" >id="jr-listing-title-([0-9]*)"[\s]*>(.[^<]*)<\/a></expression>
</RegExp>
<!--For if we get a direct match and redirected straight to movie page-->
<RegExp input="$$3" output="<entity>\1</entity>" dest="5+">
<!--Fanedit Id-->
<RegExp input="$$1" output="<url>http:\/\/ifdb.fanedit.org/?p=\1</url>" dest="3">
<expression noclean="1">data-listingid="listing(\d+)"</expression>
</RegExp>
<!--Title-->
<RegExp input="$$1" output="<title>\1</title>" dest="3+">
<expression noclean="1"><span itemprop="headline">(.*)</span></expression>
</RegExp>
<expression noclean="1" />
</RegExp>
<expression noclean="1" />
</RegExp>
</GetSearchResults>
<GetDetails dest="7">
<RegExp input="$$2" output="<details>\1</details>" dest="7">
<!--Plot-->
<RegExp input="$$1" output="<plot>\1</plot>" dest="2">
<expression fixchars="1" trim="1"><div class="jrFieldRow jrBriefsynopsis"><div class="jrFieldLabel">Brief Synopsis:</div><div class="jrFieldValue ">(.*)</div></div><div class="jrFieldRow jrIntention</expression>
</RegExp>
<!--Genres-->
<RegExp input="$$5" output="<genre>\1</genre>" dest="2+">
<RegExp input="$$1" output="\1" dest="5">
<expression noclean="1"><div class="jrFieldRow jrGenre"><div class="jrFieldLabel">Genre:</div><div class="jrFieldValue "><ul class="jrFieldValueList">(.*)</ul></div></div></expression>
</RegExp>
<expression noclean="1" repeat="yes"><li><a href="http://ifdb.fanedit.org/fanedit-search/tag/genre/[a-zA-Z\-]*/\?criteria=[0-9]*">([a-zA-Z\s]*)</a></li></expression>
</RegExp>
<!--Genre-->
<RegExp input="$$1" output="<genre>\1</genre>" dest="2+">
<expression noclean="1"><div class="jrFieldRow jrGenre"><div class="jrFieldLabel">Genre:</div><div class="jrFieldValue "><a href="http://ifdb.fanedit.org/fanedit-search/tag/genre/[a-zA-Z\-]*/\?criteria=[0-9]*">([a-zA-Z\s]*)</a></div></div></expression>
</RegExp>
<!--Votes-->
<RegExp input="$$1" output="<votes>\3</votes>" dest="2+">
<expression noclean="1">(<span class="jrRatingValue">[\d.\s]+<span class="rating_count">)?(<span class="jrReviewCount"> )?\(<span class="count">([0-9]*)</span>\)</span></expression>
</RegExp>
<!--Rating-->
<RegExp input="$$1" output="<rating>\2</rating>" dest="2+">
<expression noclean="1"><span class="jrRatingValue">(<span>)?([\d.]+)</expression>
</RegExp>
<!--Thumbnail-->
<RegExp input="$$1" output="<thumb>\1</thumb>" dest="2+">
<expression noclean="1"><div[\s]*class="jrListingMainImage"[\s]*style=".*">[\s]*<a href=".*"[\s]*class="fancybox"[\s]*rel="gallery"[\s]*title=".*"[\s]*><img src="(.*)"[\s]*alt=".*"[\s]*title=".*"[\s]*class="jrMediaPhoto"[\s]*\/><\/a>[\s]*<\/div></expression>
</RegExp>
<!--Tagline-->
<RegExp input="$$1" output="<tagline>\1</tagline>" dest="2+">
<expression fixchars="1" trim="1"><div class="jrFieldRow jrTagline"><div class="jrFieldLabel">Tagline:</div><div class="jrFieldValue ">(.*)</div></div><div class="jrFieldRow jrOriginalmovietitle</expression>
</RegExp>
<!--Directors-->
<RegExp input="$$5" output="<director>\1</director>" dest="2+">
<RegExp input="$$1" output="\1" dest="5">
<expression noclean="1"><div class="jrFieldRow jrFaneditorname"><div class="jrFieldLabel">Faneditor Name:</div><div class="jrFieldValue "><ul class="jrFieldValueList">(.*)</ul></div></div></expression>
</RegExp>
<expression noclean="1" repeat="yes"><li><a href="http://ifdb.fanedit.org/fanedit-search/tag/faneditorname/[a-z0-9\-]*/\?criteria=[0-9]*">([a-zA-Z0-9\s\-']*)</a></li></expression>
</RegExp>
<!--Director-->
<RegExp input="$$1" output="<director>\1</director>" dest="2+">
<expression noclean="1"><div class="jrFieldRow jrFaneditorname"><div class="jrFieldLabel">Faneditor Name:</div><div class="jrFieldValue "><a href="http:\/\/ifdb.fanedit.org/fanedit-search/tag/faneditorname/[a-z0-9\-]*/\?criteria=[0-9]*">([a-zA-Z0-9\s\-']*)</a></div></div></expression>
</RegExp>
<!--Year-->
<RegExp input="$$1" output="<year>\1</year>" dest="2+">
<expression noclean="1"><div class="jrFieldRow jrFaneditreleasedate"><div class="jrFieldLabel">Fanedit Release Date:</div><div class="jrFieldValue "><a href=".*">[a-zA-Z]*[\s]*([0-9]{4})</a></div></div></expression>
</RegExp>
<!--Title-->
<RegExp input="$$1" output="<title>\1</title>" dest="2+">
<expression noclean="1"><span itemprop="headline">(.*)<\/span></expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</GetDetails>
</scraper>