Is there a way I can retrieve the IMDB main poster image for a certain film, if I just have the url to the film page? (imdb.com)
Using php, perhaps js/jquery
Is there a way I can retrieve the IMDB main poster image for a certain film, if I just have the url to the film page? (imdb.com)
Using php, perhaps js/jquery
You can use php scripting to get the data from another site follow the method below
1) Add file 'simple_html_dom.php' available on internet
set_time_limit(o); include_once('simple_html_dom.php');
2) Define the function scraping_IMDB and saveImg :
3) call the finction with the url:
Yes, you can retreive IMDB movie posters.Firstly, You must connect IMDB website by the curl or php's file_get_contents(); function.Also, you should parse HTML and you should find a regular expression and you must get the link of image.I explained simple of code in the following segment:
UPDATED: I would not information about, there is a IMDB API and it's simple and easy to getting image url from API.You have to parse json if you have to use API.There is a simple code for getting image from IMDB by API in the following segment of code:
Thanks for inputs. I found, the easiest and simplest way for me is to use this:
First, extract the movie id from the url, and then use getImage($theidfromtheurl). Voila