- August 20, 2007
- 2,161
- 747
- Moderator
- #161
AW: Re: How to Video database section and My Movies get to life
Hi Deda,
thanks for your feedback!
So I have two questions left ;-)
First: Do you think this is something that should be part of the MePo classes and thus being added there (as IMDB is a supported source in nMePo)?
Second: If not (which means I would have to do it myself ....) - can you give me a hint where I find similar code to learn from? I have never dealt with the grabberclasses and -templates that are available and probably would not be able to do that from scratch.
The approch you mentioned was about the same I was thinking of (checked to imdb source pages) - so it should be possible ...
... maybe I first check the existing code that gets the current single picture ... ;-)
Hi Guzzi, answer is no, it grabs only main picture from actor page.
Looking at IMDB page it will not be so difficult to grab all of them ie for Christian Bale it's easy to parse how many photo pages are
and links for every page isCode:<span style="padding: 0 1em;"> 1 <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=2"]?page=2[/URL]">2</a> <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=3"]?page=3[/URL]">3</a> <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=4"]?page=4[/URL]">4</a> <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=5"]?page=5[/URL]">5</a> <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=6"]?page=6[/URL]">6</a> <a href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/name/nm0000288/mediaindex?page=7"]?page=7[/URL]">7</a> </span>
hxxp://www.imdb.com/name/nm0000288/mediaindex?page=1 then
hxxp://www.imdb.com/name/nm0000288/mediaindex?page=2 ... etc.
and parse all pics in every page
to an array (it's rough idea how to get it and html code is very understandable and easy to parse and fetch)Code:<div class="thumb_list" style="font-size: 0px;"> <a title="" href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/rg/mediaindex/unknown-thumbnail/media/rm3605759488/nm0000288"]/rg/mediaindex/unknown-thumbnail/media/rm3605759488/nm0000288[/URL]"><img alt="" height="100" width="100" [B]src="[URL="https://forum.team-mediaportal.com/view-source:http://ia.media-imdb.com/images/M/MV5BODk0MzYxMTQzNl5BMl5BanBnXkFtZTcwMDM3NTI5Mw@@._V1._CR334,0,1331,1331_SS100_.jpg"]http://ia.media-imdb.com/images/M/MV5BODk0MzYxMTQzNl5BMl5BanBnXkFtZTcwMDM3NTI5Mw@@._V1._CR334,0,1331,1331_SS100_.jpg[/URL][/B]" /></a> <a title="" href="[URL="https://forum.team-mediaportal.com/view-source:http://www.imdb.com/rg/mediaindex/unknown-thumbnail/media/rm2904588544/nm0000288"]/rg/mediaindex/unknown-thumbnail/media/rm2904588544/nm0000288[/URL]"><img alt="" height="100" width="100" src="[URL="https://forum.team-mediaportal.com/view-source:http://ia.media-imdb.com/images/M/MV5BMTM1MjgwMzI2NF5BMl5BanBnXkFtZTcwODM3NDk4Mw@@._V1._CR343,0,1362,1362_SS100_.jpg"]http://ia.media-imdb.com/images/M/MV5BMTM1MjgwMzI2NF5BMl5BanBnXkFtZTcwODM3NDk4Mw@@._V1._CR343,0,1362,1362_SS100_.jpg[/URL]" /></a> ......... </div>
Hi Deda,
thanks for your feedback!
So I have two questions left ;-)
First: Do you think this is something that should be part of the MePo classes and thus being added there (as IMDB is a supported source in nMePo)?
Second: If not (which means I would have to do it myself ....) - can you give me a hint where I find similar code to learn from? I have never dealt with the grabberclasses and -templates that are available and probably would not be able to do that from scratch.
The approch you mentioned was about the same I was thinking of (checked to imdb source pages) - so it should be possible ...
... maybe I first check the existing code that gets the current single picture ... ;-)