could somebody help....
#1
I try to edit scraper Kinopoisk but can`t understand this link

<CreateSearchUrl dest="3" SearchStringEncoding="CP1251">
<RegExp input="$$1" output="http://www.kinopoisk.ru/index.php?kp_query=\1" dest="3">
<expression noclean="1"></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="$$1" output="&lt;entity&gt;&lt;title&gt;\2-\4&lt;/title&gt;&lt;url&gt;http://www.kinopoisk.ru/\1&lt;/url&gt;&lt;/entity&gt;" dest="5+">
<expression repeat="yes">class=&quot;all&quot; href=&quot;/([l].*?)&quot;&gt;(.*?)&lt;(.*?)[&quot|e];&gt;([0-9]*)&lt;</expression>
</RegExp>
<expression noclean="1"></expression>
</RegExp>
</GetSearchResults>

XBMC log:
22:15:31 T:2960957440 M: 44544000 DEBUG: FileCurl::Open(0xbfffd524) http://www.kinopoisk.ru/index.php?kp_que...4%e8%eb%e4
22:15:31 T:2960957440 M: 44523520 INFO: easy_aquire - Created session to http://www.kinopoisk.ru
22:15:33 T:2960957440 M: 44449792 DEBUG: FileCurl::Close(0xbfffd524) http://www.kinopoisk.ru/index.php?kp_que...4%e8%eb%e4
22:15:33 T:2960957440 M: 44449792 DEBUG: scraper: GetSearchResults returned <?xml version="1.0" encoding="windows-1251" standalone="yes"?><results></results>
22:15:33 T:2960957440 M: 44449792 ERROR: Process: Error looking up movie Гарфилд

May be somebody explain me link between CreateSearchUrl and GetSearchResults? Thanks!
Reply
#2
CreateSearchUrl creates the url used to search. We then fetch this, and pass the results from the search to GetSearchResults.
Reply
#3
pass the results from the search to - how? by default to $$1?

It is work if i delete expression and hardwrite output, but if i try to make expression it couldn`t. I download scraper edit and test expression - it works (it chose right parameters) - so i`ve last one - i got wrong data from - CreateSearchUrl - how can i check it?
i wrote (.*?) as expression and got null

PS may be troubles is in timeout? site downloading a long time. There is a big background picture
Reply

Logout Mark Read Team Forum Stats Members Help
could somebody help....0