Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

Mashups with Yahoo

Pipes and YQL


Mashup

•  Flickr •  Geo
Name

Geo
Photos
Location

Status RSS

•  Twitter •  Blog
•  Fb •  News
And what is Yahoo Pipes?
Yahoo Pipes
"   To consume data
"   To manipulate data
"   To add toppings
"   To mash up with other data types
"   To serve data fresh and oven-hot
Features
"   Modules to consume different types of
data
"   Operators to manipulate data

"   Modules to process user input

"   Even has a regex operator 


Everything Visual!
"  Has everything you need for
feed processing
pipes.yahoo.com
Slashdot feeds [Linux/PHP]
Search from flickr
Let me input!
Passing data to URL
"  http://pipes.yahoo.com/
pipes/pipe.run?
_id=04f4625bc3b59ccab09d
9b9cab458bbc&_render=rss
&dateinput1=-60+minutes
Sky Is The Limit
YQL
"   In Simple, a Command Line
version of Pipes 
"   It works like “SELECT * FROM
internet”
developer.yahoo.com/yql/console

"  select * from


flickr.photos.info where
photo_id in (select id from
flickr.photos.search where
text="dhaka" limit 1)
Output
Be Creative!
Retrieve News Headlines
"   select * from html where
url='http://www.telegraph.co.uk/’
and xpath='//h3/a'
Headlines, sir!
<results>
<a href="/news/election-2010/7579545/General-Election-2010-
Labour-manifesto-to-signal-return-to-Blairite-agenda.html">Labour
manifesto to signal return to Blairite agenda</a>
<a href="/news/election-2010/7580465/General-Election-2010-the-
key-points-of-Labours-election-manifesto.html">The key points of
Labour's election manifesto</a>
<a href="/news/election-2010/7579451/General-Election-2010-How-
Labours-campaign-manifesto-took-shape.html">How Labour's
campaign manifesto took shape</a>

</results>
I tried it with Prothom Alo
<forbidden>
robots.txt for the domain
disallows crawling for url:
http://prothom-alo.com/
</forbidden>
Search from any feed
select * from rss
where url = 'http:/
hasin.wordpress.com/feed’
and title like '%php%'
select * from geo.places where text=“Dhaka"
Search from
DRY

Don’t Repeat Yourself


Use Existing Pipes/YQL
Recipes
Home Work anyone?
"   Fetch any English blog feed

"   Translate it to French using Google Translator!

"   All you have Yahoo Pipes!

"   You may USE YQL 


Thanks
Hasin Hayder

http://hasin.wordpress.com

hasin@leevio.com

You might also like