![]() |
could somebody help.... - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: could somebody help.... (/showthread.php?tid=61618) |
could somebody help.... - BAG_Ass - 2009-11-14 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="<?xml version="1.0" encoding="windows-1251" standalone="yes"?><results>\1</results>" dest="8"> <RegExp input="$$1" output="<entity><title>\2-\4</title><url>http://www.kinopoisk.ru/\1</url></entity>" dest="5+"> <expression repeat="yes">class="all" href="/([l].*?)">(.*?)<(.*?)["|e];>([0-9]*)<</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_query=%c3%e0%f0%f4%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_query=%c3%e0%f0%f4%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! - spiff - 2009-11-14 CreateSearchUrl creates the url used to search. We then fetch this, and pass the results from the search to GetSearchResults. - BAG_Ass - 2009-11-14 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 |