Page 1 of 1

IMDB Spider

PostPosted: Thu Jan 02, 2014 12:12 pm
by lar282
Anyone can help with fixing the spiders for Imdb? Its broke again and I can't find a better htpc software to use than Xlobby -:)

thanks in advance

//Lasse

Re: IMDB Spider

PostPosted: Sun Jan 19, 2014 4:53 pm
by billberet
i fixed the imbd spider, but for some reason, starting a few days ago.
i can only get 'any' spider working from inside the database itself.
Hit alt-F2 choose database, choose movie, go to spider tab, hit imbd and search.

that works fine. but inside the skin all spiders stopped working.

any ideas?

below is my imbd.., you can copy it back into your spider.

Re: IMDB Spider

PostPosted: Sun Jan 19, 2014 4:57 pm
by billberet
here is my imbd spider



url=http://www.imdb.com/find?q=%searchstring%
results=<a href="(?<url>/title/.*?/).*?">(?<display>.*?)</a>
//*id="img_primary">.*?<img src="(?<coverart>.*?)"
//results=<a href="http://www.imdb.com/title/tt0090605">(?<display>.*?)</a>



//title & year
//<div id="tn15title"><h1>(?<title>.*?)<span>\(<a href="/Sections/Years/.*?">(?<year>.*?)\)</span></h1>
//<h1 class="header">(?<title>.*?)<span>.*?
<span class="itemprop" itemprop="name">(?<title>.*?)</span>
<a href="/year/.*?" >(?<year>.*?)</a>


//store contents to variable....next regex uses that variable!!!
//<h5>Directors:</h5>(?<variable>.*?)<h5>Writers:</h5>
//<a href="/name/.*?".*?>(?<director>.*?)</a>
<h4 class="inline">.*?Director:.*?</h4>(?<variable>.*?)</div>
<a href="/name/.*?".*?>(?<director>.*?)</a>


//<a href="/Sections/Genres/.*?">(?<genre>.*?)</a>
<h4 class="inline">Genres:</h4>(?<genre>.*?)</div>



//<a href="/List.certificates.USA.(?<rating>.*?)&&heading=14
//USA:(?<rating>.*?)</a>
//<img width="18" alt="R" src="http://i.media-imdb.com/images/SFe18791ef3ed9f039376bc190ac0597cd/certificates/us/r.png" class="absmiddle" title="R" height="15">&nbsp;&nbsp;112 min&nbsp;&nbsp;-&nbsp;&nbsp;<a onclick="(new Image()).src='/rg/title-overview/genre/images/b.gif?link=%2Fgenre%2FAction';" href="/genre/Action" >Action</a>&nbsp;<span>|</span> <a onclick="(new Image()).src='/rg/title-overview/genre/images/b.gif?link=%2Fgenre%2FDrama';" href="/genre/Drama" >Drama</a>&nbsp;<span>|</span> <a onclick="(new Image()).src='/rg/title-overview/genre/images/b.gif?link=%2Fgenre%2FSci-Fi';" href="/genre/Sci-Fi" >Sci-Fi</a>
<div class="titlePageSprite star-box-giga-star">(?<rating>.*?)</div>

//<h5>Runtime:</h5>(?<runtime>.*?)</div>
<h4 class="inline">Runtime:</h4>(?<runtime>.*?)</div>


//<table class="cast">.*?(?<variable><tr.*?>.*?</tr><tr.*?>.*?</tr><tr.*?>.*?</tr><tr.*?>.*?</tr><tr.*?>.*?</tr>).*?</table>
//<td class="nm"><a href="/name/.*?">(?<actors>.*?)</a></td>
<table class="cast_list">(?<variable>.*?)</table>
<a href="/name/.*?">(?<actors>.*?)</a>





//find imdb rating
//<b>User Rating:</b>.*?<b>(?<IMDB_rating>.*)</b>.*?<small>\(<a href="ratings">
//<span class="rating-rating ">(?<IMDB_rating>.*)<span>/10</span></span>
//<div class="titlePageSprite star-box-giga-star">(?<IMDB_rating>.*)</div>


//watch the ( ) they must have the escape character!!! ---> \
//<a class="tn15more inline" href="/rg/title-tease/plotsummary(?<url>/title/.*?/plotsummary)">more</a></div>
//plotsummary/images/b.gif.link=(?<url>/title.*?/plotsummary)'
//<p class="plotpar">(?<plot>.*?)</p>
//<h2>Storyline</h2><p>(?<plot>[\s\S]*?)</p>
<h2>Storyline</h2>(?<plot>[\s\S]*?)</div>



//watched
(?<user1watched>0)