Posts: 483
Joined: Mar 2004
Reputation:
0
2007-09-02, 15:00
I would like to try and create a moviemeter.nl scraper.
I just doen't have as much information a imdb, only:
Name
Year
Country
Genre(s)
Runtime
Director name
Actor names
Plot
Image
Is it possible to retrieve other things like rating from imdb?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
yes, you can chain as you want in the scrapers - just have a look at the imdb one
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
i just added chaining in getsearchresults so you can do this
cheers
spiff
Posts: 19
Joined: Feb 2008
Reputation:
0
Trazer
Junior Member
Posts: 19
I can't speak for the topic starter but i'm still working on it. As i'm just getting into this scraper development i'm at a trial and error stage so it might take me a while.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
you got the search thing working i assume?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
pseudo;
<CreateSearchUrl clearbuffers="no" dest="3">
store inputstring in,say, $$9
return <url>mainpage</url>
<GetSearchResults dest="3">
fetch hash
return <url function="realgetresults">someurl</url> based on hash and $$9
<RealGetResults>
return the parsed results
important points being;
1) the clearbuffers=no will make sure you don't clear the buffers between subsequent calls. this means you can pass the searchstring further on.
2) the url with a function parameter is what i'm referring to as chaining
Posts: 19
Joined: Feb 2008
Reputation:
0
Trazer
Junior Member
Posts: 19
Thanks spiff that clears some things up.
I made/found some time yesterday to work on the scraper and think i got it at a stage that it can retrieve the basic details from moviemeter. I'm testing it using scrap.exe but it seems to keep crashing. I also tried the imdb.xml with scrap.exe which also fails. So i'm guessing that scrap.exe differs from xbmc in functionality and that i should test the scraper with xbmc. Hopefully i will find time this weekend to make a stable "basic" version of the scraper after which i will be looking at adding impawards, movieposterdb support for posters and imdb support for additional movie details.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
scrap is outdated and we lost the source code for parts of it :/