On Mar 31, 2011, at 6:23 AM, Michael Grier wrote:

> Oh, and IMDb doesn't allow HEAD requests... you get a "405 Method not
> allowed" or something like that.

Right you are... no HEAD at IMDb... 

In any case, a search will properly redirect to an unique hit...the secret to 
happiness is to search for the original name, not necessarily the displayed 
one...

Contrast:

http://www.imdb.com/find?s=nm&q=Harrison+Ford+%28I%29

vs.

http://www.imdb.com/find?s=nm&q=Ford%2c+Harrison+%28I%29

The first query returns a result set.

The second query should redirect to an unique hit, Harrison Ford (I):

http://www.imdb.com/name/nm0000148/


Ditto for company:

http://www.imdb.com/find?s=co&q=Ladd+Company%2c+The

Which should redirect to Ladd Company, The:

http://www.imdb.com/company/co0042559/


Ditto for movie:

http://www.imdb.com/find?s=tt&q=Blade+Runner+%281982%29

Should redirect to Blade Runner (1982):

http://www.imdb.com/title/tt0083658/


FWIW, here is an implementation which leverages this behavior: 

http://dev.alt.textdrive.com/browser/IMDB/Find.lua

Usage example:

print( Find( 'movie', 'Blade Runner (1982)' ) )

http://www.imdb.com/title/tt0083658/




------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to