output images from links dynamically

cyberpunk

New Member
I want to write a script for a custom twitter reader.

I already know how to pull the tweets from twitter and display them.

But i would like to make a script that will look to see if there are links in each new tweet.

then if there is a link; to pull the first image over 300x300px (to avoid grabbing a button ect...) and display this next to the tweet as a preview of the link.

alternatively if the user has tweeted a photo i would like to have that photo display in the reader

any help is much appreciated i have been looking all over and cant seem to find my bearings
 
Top