Hi,
my name is Luigi and I'm trying to use PHP imdb classes to access my IMDb Pro account.
I have a regular account and I paid for it a subscription fee each month.
What I'm trying to do is to get informations about announced / in production movies to create a list of film production companies to propose my services.
The problem is that even if I specify my username and password in the browseremulator.class.php file, the result page bounced me to the signup page of IMDb Pro.
I would appreciate so much if someone could help me.
Thanks,
Luigi.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the problem is that the class was designed for the information which is freely available - so it looks like you are the first trying to access "registered only" functionality. I also don't know how that is handled at the IMDB site - but I guess they are using cookies, and I'm not sure whether the browseremulator class is handling that (I even doubt it).
What you could possibly try is to checkout the latest development code from the SVN repository (see at the project site, http://projects.izzysoft.de/trac/imdbphp, for details) and try to use the PEAR class instead. The PEAR class didn't work with the latest versions released, but that should already be fixed in the repository (would be nice if you could prove that - as I don't use PEAR, don't have it installed, and hence cannot test it myself). Chances are good that the PEAR classes handle cookies - at least I guess the chances are better than with the browseremulator class. After trying, please report back.
Best regards,
Izzy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, I'm a novice in PHP programming but I programmed many years in VB.
My problem is how to manage the server request about logging in.
Once I can figure it out, the page managing is not a problem at all.
Basically, the IMDb Pro version is intended for "professional" purposes, so the search function itself it's completely different, because it's based on a list of customizable queries which you can run periodically without any need to re-set each time the criteria itself.
So what I'm trying to do is:
- read all the previously custom queries
- choose the one to run
- read the results of the choosen query
- grab the movie informations of all the results
As I said before, the second part of what I'm trying to do, is not so complicated, because I can managing it adapting my VB skills to PHP.
My main problem is contacting the server and accomplishing to its request about logging in.
By the way, I will figure it out!
Thanks,
Luigi.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Of course you'd have to urlencode the values. Moreover, this may fail since they expect the login data using POST instead of GET - so you might need to figure out how to convert them and still send them via a script. I did not play with these things yet, so I cannot tell you - and I don't have an account, so I cannot even try.
Best regards,
Izzy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ouch - just noticed I answered the sourceforge mail instead this post... Maybe you better switch to the project site (http://projects.izzysoft.de/trac/imdbphp) for requests?
So here comes a hint I just discovered while searching for something else: You might want to have a closer look at the browseremulator class shipped with imdbphp. After initializing the class, you can set two of its properties:
$emu = new BrowserEmulator;
$emu->authUser = "MyUserName";
$emu->authPass = "MyPassword";
It looks like the class then takes care for it. I never tried, and this class is not written by me - but it's worth a try, isn't it?
Best regards,
Izzy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
my name is Luigi and I'm trying to use PHP imdb classes to access my IMDb Pro account.
I have a regular account and I paid for it a subscription fee each month.
What I'm trying to do is to get informations about announced / in production movies to create a list of film production companies to propose my services.
The problem is that even if I specify my username and password in the browseremulator.class.php file, the result page bounced me to the signup page of IMDb Pro.
I would appreciate so much if someone could help me.
Thanks,
Luigi.
Hi Luigi,
the problem is that the class was designed for the information which is freely available - so it looks like you are the first trying to access "registered only" functionality. I also don't know how that is handled at the IMDB site - but I guess they are using cookies, and I'm not sure whether the browseremulator class is handling that (I even doubt it).
What you could possibly try is to checkout the latest development code from the SVN repository (see at the project site, http://projects.izzysoft.de/trac/imdbphp, for details) and try to use the PEAR class instead. The PEAR class didn't work with the latest versions released, but that should already be fixed in the repository (would be nice if you could prove that - as I don't use PEAR, don't have it installed, and hence cannot test it myself). Chances are good that the PEAR classes handle cookies - at least I guess the chances are better than with the browseremulator class. After trying, please report back.
Best regards,
Izzy.
Thanks for the reply.
Actually, I'm a novice in PHP programming but I programmed many years in VB.
My problem is how to manage the server request about logging in.
Once I can figure it out, the page managing is not a problem at all.
Basically, the IMDb Pro version is intended for "professional" purposes, so the search function itself it's completely different, because it's based on a list of customizable queries which you can run periodically without any need to re-set each time the criteria itself.
So what I'm trying to do is:
- read all the previously custom queries
- choose the one to run
- read the results of the choosen query
- grab the movie informations of all the results
As I said before, the second part of what I'm trying to do, is not so complicated, because I can managing it adapting my VB skills to PHP.
My main problem is contacting the server and accomplishing to its request about logging in.
By the way, I will figure it out!
Thanks,
Luigi.
Hi Vercinx,
I don't have an IMDBPro account, so I cannot test this. Probably it *COULD* work by just querying the URL https://secure.imdb.com/register-imdb/login?login=MyUserName&password=MyPassword&u=http://www.imdb.com/
Of course you'd have to urlencode the values. Moreover, this may fail since they expect the login data using POST instead of GET - so you might need to figure out how to convert them and still send them via a script. I did not play with these things yet, so I cannot tell you - and I don't have an account, so I cannot even try.
Best regards,
Izzy.
Hi Luigi,
Ouch - just noticed I answered the sourceforge mail instead this post... Maybe you better switch to the project site (http://projects.izzysoft.de/trac/imdbphp) for requests?
So here comes a hint I just discovered while searching for something else: You might want to have a closer look at the browseremulator class shipped with imdbphp. After initializing the class, you can set two of its properties:
$emu = new BrowserEmulator;
$emu->authUser = "MyUserName";
$emu->authPass = "MyPassword";
It looks like the class then takes care for it. I never tried, and this class is not written by me - but it's worth a try, isn't it?
Best regards,
Izzy.