Amazon Hacks Free Open Book

Amazon Hacks

Previous Section Next Section

Hack 23 Get Movie Showtimes

figs/beginner.giffigs/hack23.gif

You can use Amazon to plan your evening by finding out when, where, and what movies are playing in your local theaters.

It's Saturday afternoon—time to make plans for the evening. Of course the Web holds all the information you need to figure out what to do. Surprisingly, though, Amazon.com is among the sites that can help you out. One of the lesser-known features Amazon provides is movie showtimes. Figure 2-11 shows the home page of the Movies category (http://www.amazon.com/movies). When you provide Amazon with your zip code, you'll see a list of the theaters in your area along with movies and times they're playing.

Figure 2-11. Amazon movie showtimes
figs/amzh_0211.gif

The zip code form is an interface for creating a URL that gets the information you want. Typing your zip code and clicking Submit creates a URL like this:

http://www.amazon.com/exec/obidos/search-handle-url/?index=showtimes[RETURN]
&field-power=zips5:insert zip code&field-date=insert date&item-start=1[RETURN]
&item-end=10

If you want to tweak the results page so that it displays more than one zip code, it's possible to examine the URL and change some values. The first relevant value is field-power. You can set this to a two-part value that's formatted like this:

zipsinsert mile radius:insert zip code

For example, if you want to find movies playing within five miles of Sebastopol, CA, you could set the field like this:

zips5:95472

The next value you need to set is field-date. It has a straightforward format that includes the year, month, and day: yyyymmdd. So if you want to know the movies playing on July 4, 2003, you would set field-date to 20030704.

However, Amazon stores movie times for only seven days beyond the current date, so you can't research the past or predict the distant future.

Now that you know the syntax, you can begin to modify it a bit. Amazon's interface doesn't let you choose multiple zip codes, but you can list movies in several areas by tweaking the URL. Say you wanted to know movies playing within five miles in both Sebastopol, CA and Corvallis, OR. Just set several values in field-power with "or":

zips5:95472 or zips5:97330

The value has to be URL-encoded [Hack #92] by converting the spaces to %20; once that's done, you can make the full request. Be sure to set the date to the current day, or a few days in the future.

http://www.amazon.com/exec/obidos/search-handle-url/?index=showtimes[RETURN]
&field-power=zips5:95472%20or%20zips5:97330&field-date=20030704[RETURN]
&item-start=1&item-end=10

In addition to viewing times on the Web, you can receive local showtimes via email. Visit http://www.amazon.com/movies-email to subscribe.

    Previous Section Next Section
    Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Z]


         Main Menu
    Main Page
    Table of content
    Copyright
    Credits
    Foreword
    Preface
    Chapter 1. Browsing and Searching
    Chapter 2. Controlling Your Information
    2.1 Hacks #13-26
    Hack 13 Understand Identity at Amazon
    Hack 14 Fine-Tune Your Recommendations
    Hack 15 Enable 1-Click Buying
    Hack 16 Set Up a Group Account
    Hack 17 Create an 'About You' Area
    Hack 18 Create a Wish List
    Hack 19 Add Items to a Wish List Remotely
    Hack 20 Add Multiple Items to a Wish List at Once
    Hack 21 Organize Your Wish List by Priority
    Hack 22 Set Email and Messages Preferences
    Hack 23 Get Movie Showtimes
    Hack 24 Create an Amazon Event Reminder
    Hack 25 Create Several Birthday Reminders at Once
    Hack 26 Best Practices for Your Amazon Account
    Chapter 3. Participating in the Amazon Community
    Chapter 4. Selling Through Amazon
    Chapter 5. Associates Program
    Chapter 6. Amazon Web Services
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele