January 2004
Intermediate to advanced
368 pages
7h 25m
English
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 ...
Read now
Unlock full access