This presentation gives an introduction to Yahoo Pipes and Yahoo Query Language and shows how to create Data Mashups and Data aggregations using pipes.
17. Pipes - Example
To achieve my purpose
I need RSS feeds from both the sites and merge them
together
http://www.google.com/finance/company_news?q=N
ASDAQ:YHOO&output=rss
http://finance.yahoo.com/rss/headline?s=YHOO
30. Pipes – other stuff
Private pipes vs public pipes
Private pipes can be shared using their URLs
Pipes once published are available for search
engines to crawl
Hosted pipes make life much more easier
31. Pipes – what can you do?
Combine 2 or more feeds or take user input and
filter, sort or concatenate them!
You can also execute regular expressions, date
formatting and much much more!
32. Pipes – Engine
Currently pipes is using V1 engine. It will be
upgraded to V2 (Beta) which is also used for YQL.
So if you have a V1 pipe, migrate to V2
33. Pipes – Cool stuff
It is easy to use with its “visual editor”.
Pipes is a life savor in enabling to jumble data
without tumbling into code.
Hosting and SEO are taken care of!! Yay!
35. YQL - Intro
YQL is more Programmatic, more robust.
SQL-like language that is easy to learn and
understand to run queries.
It returns either XML or JSON
36. YQL – Example Query
select * from flickr.photos.search where
text=”Yahoo" limit 3
41. Workshop
Take user input and search for books & following tech
magazines
Google book search base url :
http://books.google.com/books/feeds/volumes
User input should be passed as param q. So the final query
looks as:
http://books.google.com/books/feeds/volumes?q=footbal
l+-soccer&start-index=11&max-results=10
http://feeds.informationweek.com/infoweek/all_stories_b
logs
42. Workshop
Take user input
Use it as param for book search
Get feeds from Magazine
Search for items with user input in title or description
Merge the feeds from both sources
Sort them to show latest ones first
Notes de l'éditeur
Input terminal, output terminal
Pipe output module
By wiring, the output of one module becomes the input of another module