How to Digging Up Movie Info from IMDb using script

A more sophisticated use of Internet access through lynx and a shell script is demonstrated in this hack, which searches the Internet Movie Database website (http://www.imdb.com/) to find films that match a specified pattern. What makes this script interesting is that it must be able to handle two different formats of return information: If the search pattern matches more than one movie, moviedata returns a list of possible titles, but if there's exactly one movie match, the information about that specific film is returned.

As a result, the script must cache the return information and then search through it once to see if it provides a list of matches and then a second time if it proves to be a summary of the film in question.

The Code
#!/bin/sh

# moviedata - Given a movie title, returns a list of matches, if
# there's more than one, or a synopsis of the movie if there's
# just one. Uses the Internet Movie Database (imdb.com).

imdburl="http://us.imdb.com/Tsearch?restrict=Movies+only&title="
titleurl="http://us.imdb.com/Title?"
tempout="/tmp/moviedata.$$"

summarize_film()
{
# Produce an attractive synopsis of the film

grep "^" $tempout | sed 's/<[^>]*>//g;s/(more)//' <br /> grep '<b class="ch">Plot Outline:</b>' $tempout | \ <br /> sed 's/<[^>]*>//g;s/(more)//;s/(view trailer)//' |fmt|sed 's/^/ /' <br /> exit 0 <br />} <br /> <br />trap "rm -f $tempout" 0 1 15 <br /> <br />if [ $# -eq 0 ] ; then <br /> echo "Usage: $0 {movie title | movie ID}" >&2 <br /> exit 1 <br />fi <br /> <br />fixedname="$(echo $@ | tr ' ' '+')" # for the URL <br /> <br />if [ $# -eq 1 ] ; then <br /> nodigits="$(echo $1 | sed 's/[[:digit:]]*//g')" <br /> if [ -z "$nodigits" ] ; then <br /> lynx -source "$titleurl$fixedname" > $tempout <br /> summarize_film <br /> fi <br />fi <br /> <br />url="$imdburl$fixedname" <br /> <br />lynx -source $url > $tempout <br /> <br />if [ ! -z "$(grep "IMDb title search" $tempout" ] ; then <br /> grep 'HREF="/Title?' $tempout | \ <br /> sed 's/<OL><LI><A HREF="//;s/<\/A><\/LI>//;s/<LI><A HREF="//' | \ <br /> sed 's/">/ -- /;s/<.*//;s/\/Title?//' | \ <br /> sort -u | \ <br /> more <br />else <br /> summarize_film <br />fi <br /> <br />exit 0 <br /> <br />How It Works <br />This script builds a different URL depending on whether the command argument specified is a film name or an IMDb film ID number, and then it saves the lynx output from the web page to the $tempout file. <br /> <br />If the command argument is a film name, the script then examines $tempout for the string "IMDb title search" to see whether the file contains a list of film names (when more than one movie matches the search criteria) or the description of a single film. Using a complex series of sed substitutions that rely on the source code organization of the IMDb site, it then displays the output appropriately for each of those two possible cases. <br /> <br />Running the Script <br />Though short, this script is quite flexible with input formats: You can specify a film title in quotes or as separate words. If more than one match is returned, you can then specify the eight-digit IMDb ID value to select a specific match. <br /> <br />The Results <br />$ moviedata lawrence of arabia <br />0056172 -- Lawrence of Arabia (1962) <br />0099356 -- Dangerous Man: Lawrence After Arabia, A (1990) (TV) <br />0194547 -- With Allenby in Palestine and Lawrence in Arabia (1919) <br />0245226 -- Lawrence of Arabia (1935) <br />0363762 -- Lawrence of Arabia: A Conversation with Steven Spielberg (2000) (V) <br />0363791 -- Making of 'Lawrence of Arabia', The (2000) (V) <br />$ moviedata 0056172 <br />Lawrence of Arabia (1962) <br /> Plot Outline: British lieutenant T.E. Lawrence rewrites the political <br /> history of Saudi Arabia. <br />$ moviedata monsoon wedding <br />Monsoon Wedding (2001) <br /> Plot Outline: A stressed father, a bride-to-be with a secret, a <br /> smitten event planner, and relatives from around the world create <br /> much ado about the preparations for an arranged marriage in India. <br /> <br />Hacking the Script <br />The most obvious hack to this script would be to get rid of the ugly IMDb movie ID numbers. It would be straightforward to hide the movie IDs (because the IDs as shown are rather unfriendly and prone to mistyping) and have the shell script output a simple menu with unique index values (e.g., 1, 2, 3) that can then be typed in to select a particular film. <br /> <br />A problem with this script, as with most scripts that scrape values from a third-party website, is that if IMDb changes its page layout, the script will break and you'll need to rebuild the script sequence. It's a lurking bug, but with a site like IMDb that hasn't changed in years, probably not a dramatic or dangerous one. <br /> <br /></a></a></a></a> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> </span> <span class='post-timestamp'> </span> <span class='post-comment-link'> </span> <span class='post-icons'> </span> <div class='post-share-buttons goog-inline-block'> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> Labels: <a href='http://expertsxchange.blogspot.com/search/label/Linux' rel='tag'>Linux</a>, <a href='http://expertsxchange.blogspot.com/search/label/Mac%20OS' rel='tag'>Mac OS</a>, <a href='http://expertsxchange.blogspot.com/search/label/Unix' rel='tag'>Unix</a> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> <div class='comments' id='comments'> <a name='comments'></a> </div> </div> </div></div> </div> <div class='blog-pager' id='blog-pager'> <span id='blog-pager-newer-link'> <a class='blog-pager-newer-link' href='http://expertsxchange.blogspot.com/2009/02/how-to-kill-processes-by-name-using.html' id='Blog1_blog-pager-newer-link' title='Newer Post'>Newer Post</a> </span> <span id='blog-pager-older-link'> <a class='blog-pager-older-link' href='http://expertsxchange.blogspot.com/2009/02/how-to-extract-urls-from-web-page-using.html' id='Blog1_blog-pager-older-link' title='Older Post'>Older Post</a> </span> <a class='home-link' href='http://expertsxchange.blogspot.com/'>Home</a> </div> <div class='clear'></div> <div class='post-feeds'> </div> </div><div class='widget HTML' data-version='1' id='HTML1'> <div class='widget-content'> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-7135754-1"); pageTracker._trackPageview(); } catch(err) {}</script> </div> <div class='clear'></div> </div></div> </div> </div> <div class='column-left-outer'> <div class='column-left-inner'> <aside> </aside> </div> </div> <div class='column-right-outer'> <div class='column-right-inner'> <aside> <div class='sidebar section' id='sidebar-right-1'><div class='widget LinkList' data-version='1' id='LinkList2'> <h2>Bloggroll</h2> <div class='widget-content'> <ul> <li><a href='http://codeme.gotdns.com/'>Geeks Question and Answer</a></li> <li><a href='http://ehealth.tamilbot.com/'>Health Junction</a></li> <li><a href='http://www.forgenet.tamilbot.com/'>Forge Network</a></li> <li><a href='http://tamilbot.com/'>TamilBot - Entertainment Community</a></li> <li><a href='http://whatismyipaddress.tamilbot.com/'>Find your ip address</a></li> </ul> <div class='clear'></div> </div> </div> <div class='widget BlogArchive' data-version='1' id='BlogArchive1'> <h2>Blog Archive</h2> <div class='widget-content'> <div id='ArchiveList'> <div id='BlogArchive1_ArchiveList'> <ul class='flat'> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2013_01_06_archive.html'>01/06 - 01/13</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2010_01_10_archive.html'>01/10 - 01/17</a> (3) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2010_01_03_archive.html'>01/03 - 01/10</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_11_15_archive.html'>11/15 - 11/22</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_11_08_archive.html'>11/08 - 11/15</a> (2) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_09_20_archive.html'>09/20 - 09/27</a> (3) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_09_13_archive.html'>09/13 - 09/20</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_09_06_archive.html'>09/06 - 09/13</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_08_23_archive.html'>08/23 - 08/30</a> (2) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_08_16_archive.html'>08/16 - 08/23</a> (8) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_08_02_archive.html'>08/02 - 08/09</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_07_26_archive.html'>07/26 - 08/02</a> (11) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_07_19_archive.html'>07/19 - 07/26</a> (6) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_07_12_archive.html'>07/12 - 07/19</a> (3) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_07_05_archive.html'>07/05 - 07/12</a> (5) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_05_10_archive.html'>05/10 - 05/17</a> (2) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_05_03_archive.html'>05/03 - 05/10</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_04_26_archive.html'>04/26 - 05/03</a> (3) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_04_19_archive.html'>04/19 - 04/26</a> (6) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_04_12_archive.html'>04/12 - 04/19</a> (2) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_04_05_archive.html'>04/05 - 04/12</a> (8) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_03_29_archive.html'>03/29 - 04/05</a> (4) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_03_08_archive.html'>03/08 - 03/15</a> (22) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_03_01_archive.html'>03/01 - 03/08</a> (9) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_02_15_archive.html'>02/15 - 02/22</a> (105) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_02_08_archive.html'>02/08 - 02/15</a> (67) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_02_01_archive.html'>02/01 - 02/08</a> (8) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_01_25_archive.html'>01/25 - 02/01</a> (30) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2009_01_18_archive.html'>01/18 - 01/25</a> (116) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2008_11_16_archive.html'>11/16 - 11/23</a> (3) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2008_07_27_archive.html'>07/27 - 08/03</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2008_01_13_archive.html'>01/13 - 01/20</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2007_11_18_archive.html'>11/18 - 11/25</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2007_09_09_archive.html'>09/09 - 09/16</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2007_08_19_archive.html'>08/19 - 08/26</a> (3) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2007_08_12_archive.html'>08/12 - 08/19</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2007_07_22_archive.html'>07/22 - 07/29</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2007_06_10_archive.html'>06/10 - 06/17</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2007_01_07_archive.html'>01/07 - 01/14</a> (1) </li> <li class='archivedate'> <a href='http://expertsxchange.blogspot.com/2005_12_11_archive.html'>12/11 - 12/18</a> (1) </li> </ul> </div> </div> <div class='clear'></div> </div> </div></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='sidebar no-items section' id='sidebar-right-2-1'> </div> </td> <td class='columns-cell'> <div class='sidebar section' id='sidebar-right-2-2'><div class='widget Label' data-version='1' id='Label1'> <h2>Labels</h2> <div class='widget-content list-label-widget-content'> <ul> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Antivirus'>Antivirus</a> <span dir='ltr'>(6)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Apache'>Apache</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/backup'>backup</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Cisco'>Cisco</a> <span dir='ltr'>(82)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/conflicker%20Virus%20Removal%20tool'>conflicker Virus Removal tool</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/DB2'>DB2</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Foundry'>Foundry</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/freebsd'>freebsd</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/General%20Interview%20QA'>General Interview QA</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Hacking'>Hacking</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/hardware'>hardware</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Interviews'>Interviews</a> <span dir='ltr'>(17)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Java'>Java</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Likewise'>Likewise</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Linux'>Linux</a> <span dir='ltr'>(162)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Linux%20-%20Mail%20Server'>Linux - Mail Server</a> <span dir='ltr'>(6)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Linux%20Cluster'>Linux Cluster</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Mac%20OS'>Mac OS</a> <span dir='ltr'>(34)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Microsoft%20SQL'>Microsoft SQL</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/MS%20office%202007'>MS office 2007</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/MySQL'>MySQL</a> <span dir='ltr'>(5)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/openssl'>openssl</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/PDF%20to%20HTML'>PDF to HTML</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Perl'>Perl</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/PHP'>PHP</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/phpLD'>phpLD</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/RSYNC'>RSYNC</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Security'>Security</a> <span dir='ltr'>(28)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Security%20interview%20questions'>Security interview questions</a> <span dir='ltr'>(29)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Sitemap'>Sitemap</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/SQL'>SQL</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/TCP-IP'>TCP-IP</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Temperature%20Convertor'>Temperature Convertor</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Tripwire%20Enterprise'>Tripwire Enterprise</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Ubuntu-Debian'>Ubuntu-Debian</a> <span dir='ltr'>(49)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Unix'>Unix</a> <span dir='ltr'>(48)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/VMware'>VMware</a> <span dir='ltr'>(62)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/vmware%20Convertor'>vmware Convertor</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/VMWARE%20Disaster%20Recovery'>VMWARE Disaster Recovery</a> <span dir='ltr'>(3)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Vmware%20embedded'>Vmware embedded</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/VMware%20ESX'>VMware ESX</a> <span dir='ltr'>(73)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/VMware%20ESXi'>VMware ESXi</a> <span dir='ltr'>(14)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/vmware%20fusion'>vmware fusion</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/VMware%20Paravirtual'>VMware Paravirtual</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Vmware%20thinapp'>Vmware thinapp</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/vmware%20Update%20Manager'>vmware Update Manager</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/VMware%20vCenter%20Converter%20Standalone'>VMware vCenter Converter Standalone</a> <span dir='ltr'>(4)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/VMware%20View%20Manager'>VMware View Manager</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Vmware%20Virtual%20Center'>Vmware Virtual Center</a> <span dir='ltr'>(7)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Vmware%20Vshield'>Vmware Vshield</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Vmware%20Vsphere'>Vmware Vsphere</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/W32.Downadup'>W32.Downadup</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Website%20Dev'>Website Dev</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Windows'>Windows</a> <span dir='ltr'>(5)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/windows%207'>windows 7</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/wordpress'>wordpress</a> <span dir='ltr'>(2)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Workstation'>Workstation</a> <span dir='ltr'>(1)</span> </li> <li> <a dir='ltr' href='http://expertsxchange.blogspot.com/search/label/Xen%20Virtualization'>Xen Virtualization</a> <span dir='ltr'>(6)</span> </li> </ul> <div class='clear'></div> </div> </div></div> </td> </tr> </tbody> </table> <div class='sidebar no-items section' id='sidebar-right-3'> </div> </aside> </div> </div> </div> <div style='clear: both'></div> <!-- columns --> </div> <!-- main --> </div> </div> <div class='main-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> <footer> <div class='footer-outer'> <div class='footer-cap-top cap-top'> <div class='cap-left'></div> <div class='cap-right'></div> </div> <div class='fauxborder-left footer-fauxborder-left'> <div class='fauxborder-right footer-fauxborder-right'></div> <div class='region-inner footer-inner'> <div class='foot no-items section' id='footer-1'></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='foot no-items section' id='footer-2-1'></div> </td> <td class='columns-cell'> <div class='foot no-items section' id='footer-2-2'></div> </td> </tr> </tbody> </table> <!-- outside of the include in order to lock Attribution widget --> <div class='foot section' id='footer-3' name='Footer'><div class='widget Attribution' data-version='1' id='Attribution1'> <div class='widget-content' style='text-align: center;'> Simple theme. Powered by <a href='https://www.blogger.com' target='_blank'>Blogger</a>. </div> <div class='clear'></div> </div></div> </div> </div> <div class='footer-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </footer> <!-- content --> </div> </div> <div class='content-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </div> <script type='text/javascript'> window.setTimeout(function() { document.body.className = document.body.className.replace('loading', ''); }, 10); </script> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/2087407620-widgets.js"></script> <script type='text/javascript'> window['__wavt'] = 'AOuZoY4CMbzEvC1rBBqhR_EFR8dbzouZMw:1711663125256';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d3678427271002128981','//expertsxchange.blogspot.com/2009/02/how-to-digging-up-movie-info-from-imdb.html','3678427271002128981'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '3678427271002128981', 'title': 'Experts Exchange', 'url': 'http://expertsxchange.blogspot.com/2009/02/how-to-digging-up-movie-info-from-imdb.html', 'canonicalUrl': 'http://expertsxchange.blogspot.com/2009/02/how-to-digging-up-movie-info-from-imdb.html', 'homepageUrl': 'http://expertsxchange.blogspot.com/', 'searchUrl': 'http://expertsxchange.blogspot.com/search', 'canonicalHomepageUrl': 'http://expertsxchange.blogspot.com/', 'blogspotFaviconUrl': 'http://expertsxchange.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en', 'localeUnderscoreDelimited': 'en', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Experts Exchange - Atom\x22 href\x3d\x22http://expertsxchange.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22Experts Exchange - RSS\x22 href\x3d\x22http://expertsxchange.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Experts Exchange - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/3678427271002128981/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Experts Exchange - Atom\x22 href\x3d\x22http://expertsxchange.blogspot.com/feeds/5585465640713169153/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseClientId': 'ca-pub-4371976375083263', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': true, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/9058130ec67b7088', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'Twitter', 'key': 'twitter', 'shareMessage': 'Share to Twitter', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'item', 'postId': '5585465640713169153', 'pageName': 'How to Digging Up Movie Info from IMDb using script', 'pageTitle': 'Experts Exchange: How to Digging Up Movie Info from IMDb using script'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard!', 'ok': 'Ok', 'postLink': 'Post Link'}}, {'name': 'template', 'data': {'name': 'Simple', 'localizedName': 'Simple', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': false, 'variant': 'bold', 'variantId': 'bold'}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'How to Digging Up Movie Info from IMDb using script', 'description': 'A more sophisticated use of Internet access through lynx and a shell script is demonstrated in this hack, which searches the Internet Movie ...', 'url': 'http://expertsxchange.blogspot.com/2009/02/how-to-digging-up-movie-info-from-imdb.html', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 5585465640713169153}}]); _WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/1865175624-lbx.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/3268905543-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'main', document.getElementById('HTML1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LinkListView', new _WidgetInfo('LinkList2', 'sidebar-right-1', document.getElementById('LinkList2'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar-right-1', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LabelView', new _WidgetInfo('Label1', 'sidebar-right-2-2', document.getElementById('Label1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer-3', document.getElementById('Attribution1'), {}, 'displayModeFull')); </script> </body> </html>