Help needed with a custom scraper
#1
Hi,
I'm pretty poor with programming and scripting, and somehow I cannot figure out how to get around the issue I have been encountering when using a custom modified version of the scraper here: https://github.com/laoyang945/javscraper...g945.heyzo

it'd seem to me that the only sections needed to change is the <CreateSearchUrl> and <GetSearchResults> functions due to the outdated url in the code above now gives 404 error.

Regardless, the current modified version by me is here:
http://pastebin.com/6hpKGtDf

and I've tested it with both ScraperXML Editor and the java based ScraperEdit where both seem to give me no trouble retrieving the metadata from the official website.

however, in XBMC it keeps giving me the Unable to connect to remote server error, the error msg in the log are as below
Code:
19:13:07 T:15040   DEBUG: scraper: CreateSearchUrl returned <url>http://www.heyzo.com/moviepages/2000/index.html</url>
19:13:07 T:15040   DEBUG: CurlFile::Open(05A993B8) http://www.heyzo.com/moviepages/2000/index.html
19:13:07 T:15040    INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://www.heyzo.com
19:13:08 T:15040   ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
19:13:08 T:15040  NOTICE: CCurlFile::FillBuffer - Reconnect, (re)try 1
19:13:09 T:13868   DEBUG: ------ Window Init (Pointer.xml) ------
19:13:09 T:15040   ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
19:13:09 T:15040   ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
19:13:09 T:15040   ERROR: ADDON::CScraper::Run: Unable to parse web site

I just can't figure out the reason that it's parsing the 2000 as opposed to whatever film ID that the above tools would've got from the video themselves.
It seemed like that in the 4 digits of the URL, the first 2 digits somehow got parsed as 20 followed by the first 2 digit of the actual video sequence.
Reply

Logout Mark Read Team Forum Stats Members Help
Help needed with a custom scraper0