On Mar 29, 2011, at 7:13 AM, Michael Grier wrote: > curl -i -s "http://www.imdb.com/Name?Abraham%2C%20Peter%20%28III%29" | > grep --color=never Location: | cut -d " " -f 2 | cut -d / -f 5
Nice :) Also you can use HEAD instead of GET (e.g. -I/--head in curl). Checking for a 302 would not hurt either :)) The search page work the same way, it will redirect to an unique match. E.g.: http://www.imdb.com/find?s=tt&q=Blade+Runner+%281982%29 vs. http://www.imdb.com/Title?Blade+Runner+%281982%29 But note that in case of ambiguity you will get redirected to the search: http://www.imdb.com/find?q=Blade+runner+%281982%29;tt=on ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Imdbpy-help mailing list Imdbpy-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-help