Need an IMDB content scraper

chucklechuck

Registered Member
Dec 2, 2008
93
53
Does anybody know where i can find a decent imdb content scraper that would allow to show latest releases etc on my site?

Had a scout around here and google but can only find scrapers for home media/personal use etc. Can't see any feeds from their site either!

Any advice would be appreciated

Cheers

John
 
good qustion you can turn the site into a feed than scrape it .



There is a site that does that but can not find it right now.

*edit jsut found it
Code:
http://www.extralabs.net/rss-wizard.htm
*
 
Awesome, thanks Val

Feeds are a completely new thing to me and will do some quick learning tonight. Looks like it does what i need though. If this can be used for any website as it looks like it can then the possibilities are endless with this.

Great find
 
Oh, right. Didn't know someone had already published one. Apologies, just trying to help.

It's not for IMDB but it's custom and takes any input, so you can customize it for IMDB :)

Let me know if you need help b/c I made it
 
Ahh okay.

Yes, the class I provided you can customise it. You just pass a URL, start-tag & end-tag and it does the rest for you.
 
Thanks Neta and Mark,

Noob question for you, and apologise as i've quickly looked over those links, but are these tools able to run automatically when the page is loaded.

Say for instance i'm wanting to scrape the "now showing" page on imdb. Will it be updated?
 
Last edited:
Alright here is a nice general answer that can be used for any page, but the code I'll be pasting here is customized to match chucklechucks request.

You'll need a php page, any of your existing pages

Put this code on the page where you want the current movies listed

Code:
<?php
$url="http://www.imdb.com/nowplaying/";
$beg="<td class="movie ">";
$end="</a>";

$data = file_get_contents($url);
	$regex = '/'.$beg.'(.+?)'.$end.'/';
	$count=1;
	preg_match_all($regex,$data,$match,PREG_SET_ORDER);
	foreach ($match as $result) {
		$link = $result[1];
		$link=strip_tags($link);
		echo $link . '<br>';
	}
?>

I uploaded this example here http://answerexpert.net/movies.php on my site so you can see the result of how it will work. Any time someone loads that page it will always look to IMDB and scrape the newest listings. 100% dynamic

For other interested in using this you just have to change the first 3 listings
url - the website link you want to scrape
beg - beginning code string
end - ending code string

EDIT: Thanks and Rep are appreciated for this freebie ;)
 
Brilliant, exactly what i was looking for. Will play around with it and see what can be done.

Thanks given - how do you rep?
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock