imdb import based on movie URL

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
Guest

imdb import based on movie URL

Post by Guest »

Is there any way to import some movie informations from imdb using the URL? I have a script which import title, rating full, multiple categories etc. and I want to update some titles with the small/big picture. Thanks.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Using the Tools -> Scripting command, and if you have the IMDB URL in the URL field (for example) you can modify any script like that :
Somewhere in the script there is a line that looks like that :
AnalyzePage('http://us.imdb.com/Tsearch?title='+UrlEncode(MovieName));
Put a // in Front of it to comment it, and add
AnalyzePage(GetField(fieldURL));
Guest

Post by Guest »

I will check that. Thank for your answer.
Guest

Post by Guest »

... but don't work. The message is:

"Socket Error #10061. Connection refused."

I think the problem is in the procedure <AnalyzePage>, but I'm not sure. Can you give me a solution?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You called the script with Tools -> Scripting and not Get Information -> From Script ? In the second case it would not work.
Is the address in the URL field correct ?
Guest

Post by Guest »

You are right, I called with "Get Information -> From Script" (Shift + F10), not with "Tools -> Scripting" (F6). In this version it work, for my surprize, even if I don't provide the title, just the URL, wich is what I wanted.

Is a little longer way, there are 2 more clicks, but it works! Thank you very much for your answers and for this beautiful program!

P.S. Anything new about the version 4?
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Nothing new for version 4 since few months; unfortunately I do not work on it for the moment.
Post Reply