HackU Dundee 2011: Tools to Hack WithDocument Transcript
TOOLS TO HACK WITH @SteveMarshall Dundee HackU 2011
select * from internetYQL uses a SQL-like query language, allowing you to create simplequeries from one API or really easily chain queries together so you onlyget the data you really want, and fast.All of this, using one language, against one endpoint that gives youeverything on the Internet.But how do you build your queries? To the console!
This is the console. You can enter queries here…
We can do simple things like ‘Search ﬂickr for 10 cat pictures’.http://www.ﬂickr.com/search/?q=cat&w=all&m=&s=
By selecting from ﬂickr.photos.search where the text is cat.But what if we want to do something more complex?
Let’s start by ﬁnding tweets about Egypt…(select * from twitter.search where q=egypt)
And now, let’s make them all Spanish…select * from google.translate where q in (select text from twitter.searchwhere q=egypt) and target="es";)That’s pretty cool. What else can we do?
And now, let’s wrap a UI around that…And we have a hack!(http://isithackday.com/hacks/twitter-translate-form.php?search=egypt&amount=20&language=es)
select * from query.multi where queries in (‘query 1’, ‘query 2’, ‘query 3’)One of the most useful tables you can use, query.multi allows you tocombine multiple parallel queries into one, saving you making separatecalls to YQL for each!
social dopplr instapaper nmsi sparqlamazon dostopsi intuit noaa spotifyamee edu ip npr sunlightanswers ericssonlabs kiva nyt tarpipeappdb esme lastfm openaustralia testapple etsy limewirestore opencalais textarxiv eyefi livedoor opencontext themoviedbauth facebook local openid thetvdbavatars fantasysports longurl opensocial timeoutaws fcc maps paypal tinysongbasecamp filemd5 mediawikiapi pidgets tumblrbatlas finance meetup pikchur tvragebbc fitbit meme plos twfybible flickr mendeley pubsubhubbub twitterbit folderscrape microsoft query ukparliamentbizrate foursquare misc recovery ukpostcodeblackcountryhi friendfeed mixi rss upcomingstory gdacs movies rtm urbanesiaboston geo mozillalabs salesforce usgsbrazil github museumoflond seafoodwatch victoriaandalbebritishmuseum google on search rtbrooklyn gov music sears vimeobungie gowalla mybloglog seomoz weatherchristies greader mynewsdesk shelfari wesabecomicvine greenbookings ncbi shipping whitepagescouprecoup guardian nestoria shopping wordpresscraigslist hackernews netflix shoppingcart worldbankdarkhelmet hatena newegg simplegeo wufoodelicious ign nextbus slideshare wundergrounddigg imdb ngmoco socialgraph yahoodigitalnz infochimps nmm socialmention yahoojpHundreds of APIs… all in one place. Accessible to your app…Make your own!
Yahoo has myriad location technologies open for use, from Yahoo!Maps’ ajax and Flash interface widgets through geocoders to services toallow users to control how they share their location. Here are some ofmy favourites:
PlaceFinder is a geocoding Web service that converts street addresses orplace names into geographic coordinates (and vice versa).
Fire Eagle is a service to allow developers to access users’ location datain a safe, secure way.
FAKE IT TILL YOU MAKE IT (BUT DO MAKE IT EVENTUALLY)If you can’t ﬁnd an API or library to do what you want (and it doesn’thave to be from Mozilla or Yahoo!), fake it until you absolutely musthave real data.Work on the core of your hack, not on infrastructure for it.