O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  


 
Buy the book!
Yahoo! Hacks
By Paul Bausch
October 2005
More Info

How do these hacks stand up? Comment on a hack from the book by choosing the associated "Discuss" link below. You can also view the code from any of the hacks by clicking on the "Listing" or "Code" links. A number of hacks have been selected to be featured online in their entirety; you may view those hacks by clicking on the hack titles that are linked.

You can also download all the scripts and other files for this book here.

Jump to: Search  | Services  | Communicating  | Web Services  | Applications  | Webmastering

Search

HACK
#1

Fine-Tune Yahoo! Web Search Queries
By understanding how to phrase your searches, you'll find more relevant search results
[Discuss (1) | Link to this hack]

HACK
#2

Save Time with Search Shortcuts
By using a few specific keywords, you can have Yahoo! answer common questions within your search results, provide specific information, or point directly to your answer
[Discuss (0) | Link to this hack]

HACK
#3

Create a Yahoo! ID
The key to many of the services at Yahoo! is a unique Yahoo! ID, and understanding how IDs work is key to keeping your Yahoo! ID private
[Discuss (104) | Link to this hack]

HACK
#4

Set Persistent Yahoo! Search Preferences
Tweak your Yahoo! preferences to get the most out of your searching
[Discuss (0) | Link to this hack]

HACK
#5

Assemble Advanced Search Queries
By understanding how Yahoo! Advanced Search URLs are structured, you can create your own Advanced Search queries on the fly
[Discuss (0) | Link to this hack]

HACK
#6

Translate Any Page with Yahoo!
The World Wide Web has pages in every language, and Yahoo! can help you break through the language barrier
[Discuss (0) | Link to this hack]

HACK
#7

Personalize, Track, and Share the Web
A free Yahoo! service called My Web remembers your searches, saves copies of web pages, and shares your saved pages with others
[Discuss (0) | Link to this hack]

HACK
#8

Prefetch Yahoo! Search Results
Automatically prefetch and cache the first search result on Yahoo! Web Search
The Code
[Discuss (0) | Link to this hack]

HACK
#9

Compare Yahoo! and Google Search Results
Pit Yahoo! and Google against each other and find more search results in the process
[Discuss (0) | Link to this hack]

HACK
#10

Find Content You Can Reuse Legally
Use the Yahoo! Creative Commons Search to find text and images with special licenses
[Discuss (0) | Link to this hack]

HACK
#11

Find Video from Across the Web
The Yahoo! Video Search can help you find video clips that have been posted to the Web
[Discuss (0) | Link to this hack]

HACK
#12

Streamline Browsing with the Yahoo! Toolbar
The Yahoo! Toolbar integrates Yahoo! with your web browser, letting you search, customize features, and access your mail from the browser at all times
[Discuss (0) | Link to this hack]

HACK
#13

Customize the Firefox Quick Search Box
Though Yahoo! Web Search is a default option in the Firefox search box, with some quick coding you can add many other Yahoo! Search types
The Code
[Discuss (0) | Link to this hack]

HACK
#14

Spot Trends with Yahoo! Buzz
Find out which pop culture phenomenon is on the way in or out by looking at trends in search queries
[Discuss (0) | Link to this hack]

HACK
#15

Find Hot Technologies at the Buzz Game
The Buzz Game lets tech geeks speculate about where their industries are headed, and you can use their insider knowledge to spot tech trends
[Discuss (0) | Link to this hack]

HACK
#16

Tame Long Yahoo! URLs
With an eye for URLs and the right tools, you can shorten long Yahoo! URLs when you need to send them via email
[Discuss (0) | Link to this hack]

HACK
#17

Opt Out of Advertiser Cookies
Advertisers on Yahoo! might set browser cookies to track patterns, but you can tell them you'd rather not be tracked
[Discuss (0) | Link to this hack]

HACK
#18

Track News About Yahoo!
Yahoo! is a big company, and there are many ways to watch Yahoo! in action
[Discuss (0) | Link to this hack]

HACK
#19

Spider the Yahoo! Catalog
Writing a spider to spider an existing spider's site may seem convoluted, but it can prove useful when you're looking for location-based services. This hack walks through creating a framework for full-site spidering, including additional filters to lessen your load
The Code
[Discuss (0) | Link to this hack]

HACK
#20

Browse the Yahoo! Directory
When you don't know exactly what you're looking for, the Yahoo! Directory might be able to help you find it
[Discuss (0) | Link to this hack]

HACK
#21

Track Additions to Yahoo!
Keep track of the number of sites added to your favorite Yahoo! categories
The Code
[Discuss (0) | Link to this hack]

HACK
#22

Yahoo! Directory Mindshare in Google
How does link popularity compare in Yahoo!'s searchable subject index versus Google's full-text index? Find out by calculating mindshare
The Code
[Discuss (0) | Link to this hack]

Services

HACK
#23

Track Your Investments
Yahoo! Finance can help you track the performance of your stocks, bonds, or mutual funds
[Discuss (0) | Link to this hack]

HACK
#24

Build Your Own Stock Update Email
Receive simple stock price updates via email—on your own schedule—with a bit of Perl scripting
The Code
[Discuss (0) | Link to this hack]

HACK
#25

Download Financial Data Using Excel Web Queries
When a web site doesn't offer a downloadable file of the data you want, avoid manual data entry by using Microsoft Excel's web query feature
[Discuss (0) | Link to this hack]

HACK
#26

Convert Currencies with One Click
Yahoo! Finance can tell you how many euros there are in a U.S. dollar, and a little JavaScript can speed up the answer
The Code
[Discuss (0) | Link to this hack]

HACK
#27

Do the Math with Yahoo! Calculators
The next time someone tells you to "do the math," try a Yahoo! Calculator
[Discuss (0) | Link to this hack]

HACK
#28

Add a Yahoo! Bookmark with One Click
Speed up the process of adding sites to your Yahoo! Bookmarks with a browser bookmark and a bit of JavaScript
The Code
[Discuss (0) | Link to this hack]

HACK
#29

Import Existing Bookmarks into Yahoo! Bookmarks
To consolidate or build a Bookmark library quickly, you can import existing bookmarks from applications such as Firefox, Internet Explorer, or web applications that support OPML
[Discuss (0) | Link to this hack]

HACK
#30

Open Yahoo! Bookmarks in a Sidebar
The easiest way to take your Yahoo! Bookmarks out for a surfing binge is by tacking them up in a browser sidebar
[Discuss (0) | Link to this hack]

HACK
#31

Publish Your Yahoo! Bookmarks
Give the gift of your accumulated links to the world by publishing your Yahoo! Bookmarks to the Web
The Code
[Discuss (0) | Link to this hack]

HACK
#32

Track the Media's Attention Span over Time
Visualize media trends by counting the total number of Yahoo! News mentions of a specific phrase over a series of dates
The Code
[Discuss (0) | Link to this hack]

HACK
#33

Monitor the News with RSS
Keep your finger on the pulse of your favorite news topics by adding Yahoo! News search results to your favorite RSS reader
[Discuss (0) | Link to this hack]

HACK
#34

Personalize My Yahoo!
My Yahoo! can be your window to the world, if you take some time to specify what you want to see and how you want to see it
[Discuss (0) | Link to this hack]

HACK
#35

Track Your Favorite Sites with RSS
One of the most powerful features of My Yahoo! allows you to add RSS feeds from any online information source
[Discuss (0) | Link to this hack]

HACK
#36

Add a Feed to My Yahoo! with a Right-Click
Speed up the time it takes to add RSS feeds to My Yahoo! with Internet Explorer
The Code
[Discuss (0) | Link to this hack]

HACK
#37

Build Your Own News Crawler
The My Yahoo! Ticker can provide a nonstop stream of news, weather, and stock quotes in your Windows toolbar
[Discuss (0) | Link to this hack]

HACK
#38

Replace Your Phone Book with Yahoo!
Throw out the giant book of numbers, and find everything from business information to personal phone numbers by searching at Yahoo!
[Discuss (0) | Link to this hack]

HACK
#39

Monitor Your Commute
Let Yahoo! Local point out construction, accidents, and other potential slow spots on your route
[Discuss (0) | Link to this hack]

HACK
#40

Get the Facts at Yahoo! Reference
Yahoo! has collected several reference books into one site for easy research and fact-checking
[Discuss (0) | Link to this hack]

HACK
#41

Find and Rate Movies
You can find showtimes, review movies, and get recommendations at Yahoo! Movies
[Discuss (0) | Link to this hack]

HACK
#42

Subscribe to Movie Showtimes
With some quick scripting, subscribe to your favorite theaters to keep up with the movies they're playing
The Code
[Discuss (1) | Link to this hack]

HACK
#43

View Movie Lists on Your Cell Phone
Next time you go to the video store, take a Yahoo! Movies list with you on your cell phone
The Code
[Discuss (0) | Link to this hack]

HACK
#44

Plan Your TV Viewing
Yahoo! TV can help you plan what to watch and when to watch it
[Discuss (0) | Link to this hack]

HACK
#45

Create a TV Watch List
Combine Yahoo! TV with Yahoo! Calendar to build a custom TV schedule
The Code
[Discuss (0) | Link to this hack]

HACK
#46

Develop and Share a Trip Itinerary
Yahoo! Trip Planner can help you organize an excursion and let you share your travel plans with others
[Discuss (0) | Link to this hack]

HACK
#47

Shop Intelligently
Use Yahoo! Shopping to find and compare products across the Web
[Discuss (0) | Link to this hack]

HACK
#48

Visualize Your Music Collection
Use the Yahoo! Music Engine API to find out which artists appear most often in your collection
The Code
[Discuss (0) | Link to this hack]

HACK
#49

Take Yahoo! on the Go
Yahoo! Mobile lets you take much of the power of Yahoo! with you
[Discuss (0) | Link to this hack]

HACK
#50

Stay Connected with Yahoo! Alerts
Yahoo! Alerts send information that's important to you, when and where you need it
[Discuss (0) | Link to this hack]

Communicating

HACK
#51

Navigate Yahoo! Mail
Find your way around the Yahoo! Mail interface, and speed up common tasks with keyboard shortcuts
[Discuss (0) | Link to this hack]

HACK
#52

Manage Yahoo! Mail
Take control of your mail by creating folders and filters for incoming messages
[Discuss (0) | Link to this hack]

HACK
#53

Create Yahoo! Mail Macros
With a combination of email drafts, direct URL bookmarks, and bookmarklets, you can send complex emails with one click
[Discuss (0) | Link to this hack]

HACK
#54

Read All Your Email in One Place
With a little setup, you can read email from all of your accounts when you're on the go
[Discuss (0) | Link to this hack]

HACK
#55

Read Yahoo! Mail in Your Preferred Email Client
The standard way to read Yahoo! Mail is with a web browser, but some freely available software called YPOPs! can deliver your Yahoo! Mail to your favorite email client
[Discuss (0) | Link to this hack]

HACK
#56

Manage and Share Your Schedule
Yahoo! Calendar can help you plan your time, manage an event, remember important events, and share your schedule with friends and family
[Discuss (0) | Link to this hack]

HACK
#57

Add Contacts to Your Yahoo! Address Book
Add contacts to your Yahoo! Mail Address Book from incoming email or existing desktop address books
[Discuss (0) | Link to this hack]

HACK
#58

Map Yahoo! Address Book Contacts
Plot the locations of your friends and colleagues on a map of the world with your Yahoo! Address Book and the worldkit mapping application
The Code
[Discuss (0) | Link to this hack]

HACK
#59

Discuss, Share, and Collaborate with Others
Use Yahoo! Groups to set up a space to share information via email and on the Web
[Discuss (0) | Link to this hack]

HACK
#60

Archive Yahoo! Groups Messages with yahoo2mbox
Looking to keep a local archive of your favorite mailing list? With yahoo2mbox, you can import the final results into your favorite mailer
The Code
[Discuss (0) | Link to this hack]

HACK
#61

Explore Your Social Networks
Use Yahoo! 360 to stay in touch with friends, family, and coworkers while viewing their social connections
[Discuss (0) | Link to this hack]

HACK
#62

Import an Existing Blogroll to Yahoo! 360
Moving your blog to Yahoo! 360 and already have a blogroll? Automate adding blogroll links with OPML and Perl
The Code
[Discuss (0) | Link to this hack]

HACK
#63

Add an API to Your Yahoo! 360 Blog
Start using third-party services with your Yahoo! 360 blog by adding your own API
The Code
[Discuss (0) | Link to this hack]

HACK
#64

Create a Yahoo! Avatar
Make a custom caricature of yourself and watch it smile or cry along with you as you chat through Yahoo! Instant Messenger
[Discuss (0) | Link to this hack]

HACK
#65

Add a Content Tab to Yahoo! Messenger
With a bit of Registry hacking, you can add a custom content tab to Yahoo! Instant Messenger
The Code
[Discuss (1) | Link to this hack]

HACK
#66

Send Instant Messages Beyond Yahoo!
In a world where your friends are using different instant messaging systems, speak with all of them using Trillian
[Discuss (0) | Link to this hack]

HACK
#67

Store, Sort, and Share Your Photos
Flickr makes it easy to share your photos with the world
[Discuss (0) | Link to this hack]

Web Services

HACK
#68

Program Yahoo! with Perl
Grabbing data from Yahoo! Search Web Services can be quite easy with just a little bit of Perl
[Discuss (1) | Link to this hack]

HACK
#69

Program Yahoo! with PHP 5
Take advantage of some of the latest features in PHP to quickly add Yahoo! data to PHP-powered pages
The Code
[Discuss (0) | Link to this hack]

HACK
#70

Program Yahoo! with Python
Use the existing Yahoo! library for Python to build applications quickly
The Code
[Discuss (0) | Link to this hack]

HACK
#71

Program Yahoo! with VBScript
Build Yahoo! searches into Windows programs or ASP pages with VBScript
The Code
[Discuss (0) | Link to this hack]

HACK
#72

Program Yahoo! with ColdFusion
ColdFusion MX includes all of the tools necessary to work with the Yahoo! API
The Code
[Discuss (1) | Link to this hack]

HACK
#73

Program Yahoo! with XSLT
Transform Yahoo! Search Web Services responses into HTML with an XSLT stylesheet
The Code
[Discuss (0) | Link to this hack]

HACK
#74

Program Yahoo! with Java
Java's native support for working with XML makes parsing Yahoo! Search Web Services responses a snap
The Code
[Discuss (0) | Link to this hack]

HACK
#75

Program Yahoo! with Ruby
Use a Yahoo! Ruby library to include Yahoo! data in your Ruby scripts
The Code
[Discuss (1) | Link to this hack]

HACK
#76

Program Yahoo! with REBOL
With REBOL, you can build a graphical interface to Yahoo! with minimal code
The Code
[Discuss (0) | Link to this hack]

Applications

HACK
#77

Visualize Yahoo! Web Search Results
A service called Grokker groups Yahoo! Web Search results into a categorized, animated display
[Discuss (0) | Link to this hack]

HACK
#78

Find Links to Any Web Site
Yahoo! can tell you which sites link to any other site, and yLinkbacks uses Yahoo! Search Web Services to find links to the current page you're browsing
The Code
[Discuss (0) | Link to this hack]

HACK
#79

Import Yahoo! Local Listings into Your Address Book
A freely available program called gvcard can help you import a Yahoo! Local listing into your email address book, cell phone, or any application that understands vCard
The Code
[Discuss (0) | Link to this hack]

HACK
#80

Create a Yahoo! Local MIDlet
Use Java for mobile devices to access the Yahoo! Local API on a mobile device
The Code
[Discuss (0) | Link to this hack]

HACK
#81

Import Yahoo! Local Listings into Excel
Bringing Yahoo! Local Search results into a spreadsheet can help you sort, view, and visualize local businesses
[Discuss (0) | Link to this hack]

HACK
#82

Spell Words with Yahoo! Images
Web of Letters combines Yahoo! Image Search results to spell a single word
The Code
[Discuss (0) | Link to this hack]

HACK
#83

Randomize Your Windows Desktop Background
Use the Yahoo! Image Search web service to spin a virtual roulette wheel and let fate choose your desktop background image
The Code
[Discuss (0) | Link to this hack]

HACK
#84

Randomize Your Mac Desktop Background
Leave your Mac desktop picture to chance with Yahoo!, Perl, and AppleScript
The Code
[Discuss (0) | Link to this hack]

HACK
#85

Mash Up Images from Around the Web
The Yahoo! Image API provides access to thousands of images across the Web, and developers are recombining these images into new applications that let you play along
[Discuss (0) | Link to this hack]

HACK
#86

Illustrate Any Web Site
The yReplacer Yahoo! game replaces words on any web page with an image
The Code
[Discuss (0) | Link to this hack]

HACK
#87

Add Links to a Block of Text Automatically
Auto-Linker uses the Yahoo! API to add relevant links to keywords in any text
The Code
[Discuss (0) | Link to this hack]

HACK
#88

Visualize News Topics as Tags
Two services, Yahoo! News Tag Soup and TagCloud, use the Yahoo! Contextual Web Search API to help you visualize which topics are mentioned the most across Yahoo! News and your favorite sites
[Discuss (0) | Link to this hack]

HACK
#89

Get Related Terms Instantly with Ajax
Pull Yahoo! related search suggestions into a web page without clicking a link, a form button, or the Refresh button
The Code
[Discuss (0) | Link to this hack]

HACK
#90

Compare the Popularity of Related Search Terms
By gluing together two different kinds of Yahoo! Web Services requests, you can find the most widely used alternate search requests for any given topic
The Code
[Discuss (1) | Link to this hack]

HACK
#91

Plot Multiple Points on Your Own Map
Use the Yahoo! Maps Web Service to plot several locations on a map at once
The Code
[Discuss (0) | Link to this hack]

Webmastering

HACK
#92

Get Your Site Listed at Yahoo!
Put your site in front of Yahoo! searchers by suggesting it for inclusion
[Discuss (0) | Link to this hack]

HACK
#93

Hide Part of Your Web Site from Yahoo!
Though many sites do whatever they can to be found and ranked highly in Yahoo! Search results, there might be parts of your site that you want to keep private
[Discuss (0) | Link to this hack]

HACK
#94

Search Your Web Site with Yahoo!
Offer your readers a way to search your site—without hiring a team of developers to build it
The Code
[Discuss (0) | Link to this hack]

HACK
#95

Add Presence to Your Web Site
Let your visitors know when you're online by connecting your site to Yahoo! Messenger
The Code
[Discuss (0) | Link to this hack]

HACK
#96

Syndicate Rich Media
Media RSS can tell Yahoo! and the world about your audio and video
The Code
[Discuss (0) | Link to this hack]

HACK
#97

Add Contextual Search to Your Blog
Y!Q gives your readers the ability to search for content directly related to your posts
[Discuss (0) | Link to this hack]

HACK
#98

Post Photos to Your Blog
If you take a few minutes to enter some information about your weblog at Flickr, you can post photos directly to your weblog with a single click
[Discuss (0) | Link to this hack]

HACK
#99

Feed Your Latest Photos to Your Web Site
Flickr provides a number of ways to syndicate your photos to another web site
[Discuss (0) | Link to this hack]

HACK
#100

Display Messages from a Yahoo! Group on Your Web Site
Use RSS to display the latest messages from a Yahoo! Group on a remote web site
The Code
[Discuss (0) | Link to this hack]


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.