Skip to content

Straight Dope gets the actual URL for media content that is usually hidden behind a page.

Notifications You must be signed in to change notification settings

tinkerbox/straight-dope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Straight Dope

StraightDope is a gem for getting the URLs of media content from sites such as yfrog and Twitpic. Currently supported services:

  • yfrog

  • TwitPic

  • Lockerz

  • Twitgoo

  • img.ly

  • Mobypicture

Coming soon:

  • Posterous

Getting Started

Add this to your Gemfile and run the bundle command.

gem "straight_dope"

To use it, simply call extract_media on a string.

StraightDope.extract_media("put your urls here")

StraightDope will return you an array of URL strings, that you can use directly in your HTML tags.

Future Enhancements

  • oEmbed support

  • API keys

  • Video support

  • Different sizes

Reference

Straight Dope was inspired from these blog posts.

jasonneylon.wordpress.com/2011/02/01/twitter-picture-previews-with-ruby

railstips.org/blog/archives/2009/03/04/following-redirects-with-nethttp

About

Straight Dope gets the actual URL for media content that is usually hidden behind a page.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages