IMDB Spider

V3 help and support questions

IMDB Spider

Postby lar282 on Thu Jan 02, 2014 12:12 pm

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
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: IMDB Spider

Postby billberet on Sun Jan 19, 2014 4:53 pm

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.
Last edited by billberet on Sun Jan 19, 2014 4:58 pm, edited 1 time in total.
billberet
 
Posts: 666
Joined: Mon Sep 29, 2008 9:26 pm
Location: NYC

Re: IMDB Spider

Postby billberet on Sun Jan 19, 2014 4:57 pm

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)
billberet
 
Posts: 666
Joined: Mon Sep 29, 2008 9:26 pm
Location: NYC