<?xml version="1.0" encoding="UTF-8"?>
<!-- Version: 2.05 -->
<scraper name="KinoPoisk.ru" date="2010-01-23" content="movies" framework="1.1" thumb="KinoPoisk.gif" ServerContentEncoding="CP1251" language="ru">
	<include>common/tmdb.xml</include>
	<GetSettings dest="3">
		<RegExp input="$$5" output="&lt;settings&gt;\1&lt;/settings&gt;" dest="3">
			<RegExp input="$$1" output="&lt;setting label=&quot;фанарт с сайта TMDB&quot; type=&quot;bool&quot; id=&quot;fanart&quot; default=&quot;true&quot;&gt;&lt;/setting&gt;" dest="5+">
				<expression></expression>
			</RegExp>
			<expression noclean="1"></expression>
			</RegExp>
	</GetSettings>
	<CreateSearchUrl dest="3" SearchStringEncoding="cp1251">
		<RegExp input="$$1" output="http://www.kinopoisk.ru/index.php?level=7&amp;from=forma&amp;result=adv&amp;m_act%5Bfrom%5D=forma&amp;m_act%5Bwhat%5D=content&amp;m_act%5Bfind%5D=\1&amp;m_act%5Byear%5D=&amp;m_act%5Bcountry%5D=&amp;m_act%5Bgenre%5D=&amp;m_act%5Bcompany%5D=&amp;m_act%5Bmpaa%5D=&amp;m_act%5Bactor%5D=&amp;m_act%5Bcast%5D=&amp;m_act%5Bcontent_find%5D=" dest="3">
			<expression></expression>
		</RegExp>
	</CreateSearchUrl>
	<GetSearchResults dest="8">
		<RegExp input="$$5" output="&lt;?xml version=&quot;1.0&quot; encoding=&quot;windows-1251&quot; standalone=&quot;yes&quot;?&gt;&lt;results&gt;\1&lt;/results&gt;" dest="8">
			<RegExp input="$$7" output="&lt;entity&gt;\1&lt;/entity&gt;" dest="5+">
				<RegExp input="$$1" output="$$1" dest="6">
					<expression clear="yes">/level/19/film/</expression>
				</RegExp>
				<RegExp input="$$6" output="&lt;title&gt;\1 " dest="7">
					<expression trim="1">&lt;title&gt;([^&lt;]+)&lt;/title&gt;</expression>		 
				</RegExp>
				<RegExp input="$$6" output="(\1)&lt;/title&gt;" dest="7+">
					<expression>&lt;td class=&quot;&quot;&gt;&lt;a href=&quot;/level/10/m_act%5Byear%5D/\d+/&quot;&gt;(\d+)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;</expression>
				</RegExp>
				<RegExp input="$$6" output="&lt;url&gt;http://www.kinopoisk.ru/level/1/film/\1&lt;/url&gt;" dest="7+">
					<expression>href="/level/19/film/([^"]+)" class="all"&gt;\.\.\.&lt;/a&gt;</expression>
				</RegExp>
				<expression noclean="1"></expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;entity&gt;&lt;title&gt;\2 (\3)&lt;/title&gt;&lt;url&gt;http://www.kinopoisk.ru/level\1&lt;/url&gt;&lt;/entity&gt;" dest="5+">
				<expression repeat="yes">&lt;a class="all" href="/level([^"]*)"&gt;([^&lt;]*)&lt;/a&gt;,&amp;nbsp;&lt;a[^&gt;]*&gt;([^&lt;]*)&lt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</GetSearchResults>	
	<GetDetails clearbuffers="no" dest="3">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="3">
			<RegExp input="$$1" output="&lt;title&gt;\1&lt;/title&gt;" dest="5">
				<expression trim="1">&lt;title&gt;([^&lt;]+)&lt;/title&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;year&gt;\1&lt;/year&gt;" dest="5+">
				<expression>&lt;td class=&quot;&quot;&gt;&lt;a href=&quot;/level/10/m_act%5Byear%5D/\d+/&quot;&gt;(\d+)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;top250&gt;\1&lt;/top250&gt;" dest="5+">
				<expression>Top250: &lt;a[^&gt;]+&gt;([0-9]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;mpaa&gt;\1&lt;/mpaa&gt;" dest="5+">
				<expression>&lt;tr&gt;&lt;td class="type"&gt;[^&lt;]+MPAA&lt;/td&gt;&lt;td[^&gt;]+&gt;&lt;a href='.+?/rn/(.+?)/'</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;tagline&gt;\1&lt;/tagline&gt;" dest="5+">
				<expression>&lt;td style=&quot;color: #555&quot;&gt;&amp;laquo;(.+?)&amp;raquo;&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;runtime&gt;\1&lt;/runtime&gt;" dest="5+">
				<expression>&lt;td class="time" id="runtime"&gt;([0-9]+)</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
				<expression>IMDB: ([0-9.]+) \(([0-9\s]+)\)&lt;/div&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
				<expression repeat="yes">&lt;a href="/level/10/m_act%5Bgenre%5D/\d+/"&gt;([^&gt;]*)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;studio&gt;\1&lt;/studio&gt;" dest="5+">
				<expression>&lt;a href='/level/10/m_act\[company\]/\d+/' class='all'&gt;&amp;laquo;(.+?)&amp;raquo;&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;PEOPLE&quot;&gt;http://www.kinopoisk.ru/level/19/film/\1&lt;/url&gt;" dest="5+">
				<expression>&lt;a href="/level/19/film/(\d+)/" class="all"&gt;...&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1&amp;#133;&amp;hellip;&amp;laquo;&amp;#151;&amp;mdash;&amp;nbsp;" dest="2">
				<expression noclean="1">&lt;tr&gt;&lt;td colspan=3 style="padding: 10px 10px 20px 20px" class="news"&gt;\s+&lt;span class="_reachbanner_"&gt;[\t\n]*(.*?)[\t\n]*&lt;/span&gt;\s+&lt;/td&gt;&lt;/tr&gt;\s+&lt;tr&gt;&lt;td colspan=3&gt;</expression>
			</RegExp>
			<RegExp input="$$4" output="&lt;outline&gt;\1&lt;/outline&gt;&lt;plot&gt;\1&lt;/plot&gt;" dest="5+">
				<RegExp input="$$2" output="\1 " dest="4">
					<expression repeat="yes">(.*?)&amp;nbsp;</expression>
				</RegExp> 
				<RegExp input="$$4" output="\1 -- " dest="4">
					<expression repeat="yes">(.*?)&amp;mdash;</expression>
				</RegExp> 
				<RegExp input="$$4" output="\1- " dest="4">
					<expression repeat="yes">(.*?)&amp;#151;</expression>
				</RegExp> 
				<RegExp input="$$4" output="\1&quot;" dest="4">
					<expression repeat="yes">(.*?)&amp;[lr]aquo;</expression>
				</RegExp> 
				<RegExp input="$$4" output="\1..." dest="4">
					<expression repeat="yes">(.*?)&amp;hellip;</expression>
				</RegExp> 
				<RegExp input="$$4" output="\1..." dest="4">
					<expression repeat="yes">(.*?)&amp;#133;</expression>
				</RegExp> 
				<expression trim="1">(.*)\.\.\.</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;GMP&quot;&gt;http://www.kinopoisk.ru\1&lt;/url&gt;" dest="5+">
				<expression>href="(/level/17/film/\d+/)"</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url cache=&quot;KinoPoisk_opa.html&quot; function=&quot;GetPoster&quot;&gt;http://ya.ru/&lt;/url&gt;" dest="5+">
				<expression/>
			</RegExp>
			<RegExp conditional="fanart" input="$$4" output="&lt;url cache=&quot;tmdb_\2.html&quot; function=&quot;GetTMDBFanartByIMDBUrl&quot;&gt;http://www.imdb.com/find?s=tt&amp;tyear=\1&amp;q=\2&lt;/url&gt;" dest="5+">
				<RegExp input="$$1" output="\9:::\1.\2.\3.\4.\5.\6.\7.\8" dest="4">
					<expression>&lt;span style="color: #666; font-size: 13px"&gt;([^&lt;\s]+)\s*([^&lt;\s]*)\s*([^&lt;\s]*)\s*([^&lt;\s]*)\s*([^&lt;\s]*)\s*([^&lt;\s]*)\s*([^&lt;\s]*)\s*([^&lt;\s]*)&lt;/span&gt;.+&lt;td class=&quot;&quot;&gt;&lt;a href=&quot;/level/10/m_act%5Byear%5D/\d+/&quot;&gt;(\d+)&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
				<expression>(\d+):::(.+)</expression>
			</RegExp>
			<expression noclean="1"></expression>
				</RegExp>
	</GetDetails>
	<GMF dest="10">
		<RegExp input="$$9" output="&lt;details&gt;&lt;fanart&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="10">
			<RegExp input="$$1" output="&lt;url function=&quot;GMFF&gt;http://www.kinopoisk.ru\1&lt;/url&gt;" dest="9">
				<expression repeat="yes" noclean="1">&lt;a href=&quot;(/picture/\d+/)&quot; target=&quot;_blank&quot;&gt;&lt;img hspace=6 src='/images/new_win.gif'</expression>
			</RegExp>
			<expression noclean="1"></expression>
			</RegExp>
	</GMF>
	<GMFF clearbuffers="no" dest="5">
		<RegExp input="$$1" output="&lt;thumb&gt;http://www.kinopoisk.ru\1&lt;/thumb&gt;" dest="5">
			<expression noclean="1">&lt;img.+?src='([^']*kadr[^']*)'.+?style="border:1px solid #777" onLoad=''&gt;&lt;/a&gt;&lt;/td&gt;</expression>
		</RegExp>
	</GMFF>
	<GMFR dest="10">
		<RegExp input="$$9" output="&lt;details&gt;&lt;fanart&quot;&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="10">
			<RegExp input="$$1" output="&lt;url function=&quot;GMFFR&gt;http://www.kinopoisk.ru\1&lt;/url&gt;" dest="9">
				<expression repeat="yes" noclean="1">&lt;img src='/images/wallpaper/sm_\d+.jpg' width=\d+ height=\d+ style='border:5px solid #ccc' vspace=5 alt=&quot;[^"]*&quot;&gt;\s+&lt;br&gt;&lt;a href=&quot;(/picture/[^"]+)&quot; class=all&gt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
			</RegExp>
	</GMFR>
	<GMFFR clearbuffers="no" dest="5">
		<RegExp input="$$1" output="&lt;thumb&gt;http://www.kinopoisk.ru\1&lt;/thumb&gt;" dest="6+">
			<expression noclean="1">&lt;img.+?src='([^']*wallpaper[^']*)'.+?style="border:1px solid #777" onLoad=''&gt;&lt;/a&gt;&lt;/td&gt;</expression>
		</RegExp>
	</GMFFR>
	<GMP dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url function=&quot;GMPP&quot;&gt;http://www.kinopoisk.ru\1&lt;/url&gt;" dest="5">
				<expression repeat="yes" noclean="1">&lt;a href="([^"]+)"&gt;&lt;img class="new" src="/images/poster/sm_\d+.jpg" width="\d+" height="\d+" alt="</expression>
			</RegExp>
			<RegExp input="$$1" output="&lt;url function=&quot;GMPP&quot;&gt;http://www.kinopoisk.ru\1&lt;/url&gt;" dest="5+">
				<expression repeat="yes" noclean="1">&lt;a href="([^"]+)"&gt;&lt;img  src="/images/poster/sm_\d+.jpg" width="\d+" height="\d+" alt="</expression>
			</RegExp>
			<expression noclean="1"></expression>
			</RegExp>
	</GMP>
	<GMPP clearbuffers="no" dest="5">
		<RegExp input="$$1" output="&lt;thumb preview=&quot;http://www.kinopoisk.ru/images/poster/sm_\2.jpg&quot;&gt;\1-\2.jpg&lt;/thumb&gt;" dest="6+">
			<expression noclean="1">&lt;img alt=&quot;[^"]*&quot; src='(http://.+?)-(\d+)\.jpg' width='\d+' height='\d+' style="border: 1px #777 solid" onload=''&gt;</expression>
		</RegExp>
	</GMPP>
	<GetPoster dest="5">
		<RegExp input="$$6" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
			<expression noclean="1"/>
		</RegExp>
	</GetPoster>
	<GetFanart dest="5">
		<RegExp input="$$6" output="&lt;details&gt;&lt;fanart&gt;\1&lt;/fanart&gt;&lt;/details&gt;" dest="5">
			<expression noclean="1"/>
		</RegExp>
	</GetFanart>
	<PEOPLE dest="10">
		<RegExp input="$$7" output="&lt;details&gt;\1&lt;/details&gt;" dest="10">
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&lt;tr&gt;&lt;td colspan=3&gt;&lt;a name="actor"&gt;&lt;/td&gt;&lt;/tr&gt;.+?&lt;/table&gt;(.*?)&lt;tr&gt;&lt;td colspan=3&gt;&lt;a name="producer"&gt;&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;actor&gt;&lt;name&gt;\2&lt;/name&gt;&lt;role&gt;\3&lt;/role&gt;&lt;thumb spoof=&quot;http://www.kinopoisk.ru/&quot;&gt;http://www.kinopoisk.ru/images/actor/\1.jpg&lt;/thumb&gt;&lt;/actor&gt;" dest="7">
				<expression repeat="yes" trim="3">&lt;img src="/images/sm_actor/(\d+).jpg" alt=.+?&lt;p&gt;&lt;a href="/level/4/people/\d+/"&gt;([^&lt;]+)&lt;/a&gt;&lt;b&gt;[^&lt;]+?&lt;/b&gt;... ([^&lt;]+)&lt;/p&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&lt;tr&gt;&lt;td colspan=3&gt;&lt;a name="director"&gt;&lt;/td&gt;&lt;/tr&gt;.+?&lt;/table&gt;(.*?)&lt;tr&gt;&lt;td colspan=3&gt;&lt;a name="actor"&gt;&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;director&gt;\2&lt;/director&gt;" dest="7+">
				<expression repeat="yes" trim="3">&lt;img src="([^"]+)" alt=.+?&lt;p&gt;&lt;a href="/level/4/people/\d+/"&gt;([^&lt;]+)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&lt;tr&gt;&lt;td colspan=3&gt;&lt;a name="writer"&gt;&lt;/td&gt;&lt;/tr&gt;(.*?)&lt;table</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;credits&gt;\2&lt;/credits&gt;" dest="7+">
				<expression repeat="yes" trim="3">&lt;img src="([^"]+)" alt=.+?&lt;p&gt;&lt;a href="/level/4/people/\d+/"&gt;([^&lt;]+)&lt;/a&gt;</expression>
			</RegExp>
			<RegExp input="$$1" output="\1" dest="8">
				<expression noclean="1">&lt;tr&gt;&lt;td colspan=3&gt;&lt;a name="producer"&gt;&lt;/td&gt;&lt;/tr&gt;.+?&lt;/table&gt;(.*?)&lt;tr&gt;&lt;td colspan=3&gt;&lt;a name="voice"&gt;&lt;/td&gt;&lt;/tr&gt;</expression>
			</RegExp>
			<RegExp input="$$8" output="&lt;producer&gt;\2&lt;/producer&gt;" dest="7+">
				<expression repeat="yes" trim="3">&lt;img src="([^"]+)" alt=.+?&lt;p&gt;&lt;a href="/level/4/people/\d+/"&gt;([^&lt;]+)&lt;/a&gt;</expression>
			</RegExp>
			<expression noclean="1"></expression>
		</RegExp>
	</PEOPLE>
	<GetTMDBFanartByIMDBUrl dest="4">
		<RegExp input="$$5" output="&lt;details&gt;\1&lt;/details&gt;" dest="4">
			<RegExp input="$$1" output="&lt;url cache=&quot;tmdb-imdb-\2.html&quot; function=&quot;GetTMDBFanartById&quot;&gt;http://www.imdb.com/title/tt\2/&lt;/url&gt;" dest="5">
				<expression>(com|")/title/tt([0-9]+)</expression>
			</RegExp>
			<expression noclean="1"/>
		</RegExp>
	</GetTMDBFanartByIMDBUrl>
</scraper>
