TwiPho – Twitter Photo Search

twipho

Well, it seems I have more time on my hands than I need. Wednesday my on-line chum Matt decided he wanted to “build something”. Anything he said. He was open to suggestions. One of those was a Twitter photo search. To cut a long story short I stole by own suggestion and built it myself.

TwiPho was born out of two days coding (Thursday, 7th May and Friday 8th May) which accumulated to about 8 hours coding. Not bad to say I visited Alton Towers on Friday too.

Anyway, TwiPho is a Twitter Photo Search engine. It uses Twitters brilliant API (which I wrote about Wednesday) including TwitPic’s API, img.ly’s API and yfrog’s API. All Twitter image hosts. It searches though Twitter to find images related to a search keyword and shows you the images. 100% JavaScript, 100% AJAX. It uses the powerful jQuery framework too, which is a massive boost for my programming ego.

Anyway please have a look at it over at http://twipho.net/ and even let you friends know about it on Twitter!

It’s even been featured on jQuery Style, so thanks again to them!

UPDATED: Using Twitter and TwitPic, the API’s

twitpic

UPDATED: I have now added in a few lines to cache the file. This saves on bandwidth and can sometimes speed things up when the twitpic service is running slow, it’s a simple extension to an already simple script.

Most people have become addicted to Twitter, and I’m no exception.

I got an iPhone the other week and have been posting regularly, but there is one thing that is very nice, and that’s the API built into Twitter. It’s quite a nice feature, and one that I have been getting to grips with recently.

I decided I wanted to show my Twitter updates on the new website I have been building and because Twitter supports JSON feeds, I thought I’d have a crack at using jQuery to show these posts.

It’s something that’s actually quite easy. Using jQuery’s AJAX function $.getJSON it meant I could grab the feed and format it how I wished. First off make sure you have included the latest version of jQuery into your website.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

This needs to go where scripts usually reside. In your HTML <head> tag. You will also need to wrap all the below code in the jQuery documen.ready() function.

In this example I only wanted to grab one result so I started off with… Continue reading UPDATED: Using Twitter and TwitPic, the API’s