3. Apt near Park
• Craigslist apartment listings
• For each apartment:
• Click on map link
• Check distance to a park on the
map
• Tedious
4. Apt near Park
• Data is available
• Craigslist apartment RSS feed
• Yahoo! Local API to find Parks
• Can do it in about 50 lines of Perl code
• #!/usr/bin/perl -w
use strict;
use LWP::Simple;
use XML::Simple;
...
5. Pipes
•A free online service that lets you remix
any web data and create mashups using a
visual editor
Craigslist
Yahoo! Local
6. Target Audience
• The top 10% of the web 2.0 pyramid
• Coders, re-mixers, bloggers
• Assume prior knowledge
• Concepts... loops, data types
• End-users benefit indirectly
9. Any Output
RSS
Readers
Badges
HTML
Your app
here!
10. Any Process
Yahoo! Local
Fetch
Your Web Service
Here!
Sort
11. Openness
Craigslist
RSS
Readers
Yahoo! Yahoo! Local
Fetch
Badges
Google
Your Web Service
HTML
Here!
Ebay
Your app
Sort
here!
Your data
here!
12. Pipes
• Middleware for mashing data without
having your own web server
• Rapid prototyping
• Quick to write pipes - no coding or
plugins required
• Focus on what you’re trying to build
without solving the trivial
• Faster network access to many APIs
13. Engine
• Executes Pipes
• Pipes are defined by a simple definition
format
• Parallelizes/Caches as much of the
execution as possible
• Not limited to RSS
14. Editor
• Edits Pipe definitions
• Heavy lifting performed by Engine
• Rivals a desktop experience
• Almost everything is now possible in a
browser
25. Putting Pipes onto your
page
• Via the server
• Fetch the pipe data using the REST
URL and parse XML/JSON
• Put Javascript in your page
• a proxy (for Javascript XHR)
• the JSON callback mechanism...
• Put Flash in your page
• ActionScript...
26. Summary: Pipes lets you...
• Grab web data sources
• RSS, JSON, XML, RDF, ICAL, CSV
• Including Y! API data
• Manipulate the data
• Mash it up with other data sources
and data services using a visual
editor
• Preview the results, on ipes.yahoo.com
• Use the Pipe data however you want,
wherever you want (on any web site)
30. Question
• Top 20 Earthquakes in Past Week
• This Pipe uses data from the U.S.
Geological Survey (USGS) to plot the
twenty strongest earthquakes in the
last week.
• Feed url :
http://earthquake.usgs.gov/eqcenter/cat
alogs/eqs7day-M2.5.xml
• Hint : Use Location Extractor