bit.ly

url shortening service

I want to write a url shorten service. I trying to think of scenarios that would be dangerous. one I thought of was if a submitted url is from my own website, it would create an inifinite redirection loop. can you guys think of any other situations? (security holes, bugs...) ...

PHP: how to grab an URL out of a chunk of text?

Let's say I have a big RSS feed full of Twitter posts, and they are all plain text. Lots of the posts contain URLs, and I'd like those URLs to be turned into links. So I've got a variable that is equal to: Visualization of layoffs by industry, number and date. Looking forward to seeing similar for hiring trends. http://bit.ly/XBW...

Handling URL Redirections in UIWebView

Hey guys, I have a UIWebView in my app that is used to show webpages of links clicked within my app. Some of the links are URL-Shortened links, such as tinyURL or bit.ly. These url's redirect after the initial url load. My problem is that some of the links in my app are URL-Shortened links to resources that are not webpages - such as ...

Is there an expiry on bit.ly or tinyurl URLs?

Is there an expiry on bit.ly or tinyurl shortened URLs? I'm asking because I'm thinking of persisting these shortened urls into the db for a client's twitter service. UPDATE: if you keep sending bit.ly the same URL, it'll return the same shorten URL!, this is great, because it means I don't need to persist the shorten URLs in my databa...

Python: Convert those TinyURL (bit.ly, tinyurl, ow.ly) to full URLS

I am just learning python and is interested in how this can be accomplished. During the search for the answer, I came across this service: http://www.longurlplease.com For example: http://bit.ly/rgCbf can be converted to: http://webdesignledger.com/freebies/the-best-social-media-icons-all-in-one-place I did some inspecting with Fir...

How to get long URL from short URL?

Using Ruby, how do I convert the short URLs (tinyURL, bitly etc) to the corresponding long URLs? ...

How can I find shortened URLs that link to a specific long URL?

This is the reverse of the usual expanding short URLs question. For a given Long URL, how can I find which short URLs link to it? If this needs to go through the APIs of the shorteners, apointers ot the ones which support such a query would be appreciated. ...

.Net CF 2.0 HttpWebRequest pre-authentication and sending credentials on first request.

I'm attempting to communicate with bit.ly's REST API using their modified version of basic authentication. However in order for this to work HttpWebRequest needs to attach the credentials on the first request, however, HttpWebRequest will not send credentials on the first request and will wait for a 401 before sending any credentials eve...

Are there APIs for translating short url's back to regular links?

I want to translate bulk numbers of short url's coming streamed from twitter. Rather than accessing each individual request I want to use API's that accept a list of short or tiny URL's and return the original URL's. Are such API's available? ...

Do any URL Shortening services with link tracking have a https accessible url?

I have three websites that I want to generate tiny urls for search result pages every time someone clicks search. I like the http://bit.ly api and the fact that it offers tracking. However, it requires me to provide a password and does not offer ssl support. Does anyone know of a similar service that offers tracking, and a https accessib...

Javascript Regex: surround @_____, #_____, and http://______ with anchor tags in one pass?

Related (but slightly different): http://stackoverflow.com/questions/1216007/surrounding-all-instances-of-and-http-with-a I would like to surround all instances of @_______, #________, and http://________ with anchor tags in one pass. For example, consider this Twitter message: The quick brown fox @Spreadthemovie jumps over t...

What do I call in PHP to check if a string matches a pattern?

I'm a noob. I found [this URL shortener code][1] on the web. Pretty simple and straightforward and this noob was able to install, configure and get it up and running with little issue! Now I want to add something. I want to throw an error to user if they enter a link from bit.ly, TinyURL.com or tr.im. I want it to say, "Sorry, we ...

yql list of supported Open Data Tables

I know there are certain apps that support Yahoo's YQL open data tables Twitter Bitly Flickr Digg etc. Is there a comprehensive list anywhere? ...

Help with parsing Bit.ly JSON response in Javascript (url in json response)

I'm trying to extract the shortUrl from the Bit.ly JSON response. The problem is the original url is included in the response, using the dot notation to traverse the response doesn't work? I can get the other attributes (errorCode, errorMessage etc), but I can't get anything under results beacuse of the url. Am I missing something? Th...

How to convert the following ruby code into Rails plugin?

#!/opt/ruby_ee/bin require 'rubygems' require 'twitter' require 'net/http' require 'uri' require 'httparty' module FbTweet def FbTweet.tweet(url) bitly_url = Bitly.shorten(url) httpauth = Twitter::HTTPAuth.new('username', 'password') base = Twitter::Base.new(httpauth) base.update("Testing to port this into rails plug...

TinyUrl solutions for intranet portals

I'm currently researching solutions that converts SharePoint's lengthy urls to tiny/clean urls. There seems to be plenty of solutions for public sharepoint portals but I'm looking for an open source solution that i could for my intranet portal site. References to any articles or blog site that covers this issue would be great. ...

bit.ly - API Stat Tracking

Hello, I am not sure if this is the correct forum for this question, but I'm not sure where else to ask it. bit.ly provides stats for links that are generated through their site. However, it does not seem to create stats for links generated through their API. Can someone tell if me there is a way to see the stats associated with a li...

Determine Final Destination of a Shortened URL in PHP?

Hey, How can I do this in PHP? e.g. bit.ly/f00b4r ==> http://www.google.com/search?q=cute+kittens In Java, the solution is this: You should issue a HEAD request to the url using a HttpWebRequest instance. In the returned HttpWebResponse, check the ResponseUri. Just make sure the AllowAutoRedirect is set to true on t...

bit.ly API thumbnails

The bit.ly info API returns URLs for thumbnail images. When I attempt to access these images, I receive an access denied error. How do you access the thumbnail images generated by bit.ly? EDIT: I am testing the image URL by taking the URL provided by the info API and using the browser to access. Bit.ly returns an Access Denied error ...

Split Twitter RSS string using Python

Hi, I am trying to parse Twitter RSS feeds and put the information in a sqlite database, using Python. Here's an example: u'MiamiPete: today\'s "Last Call" is now up http://bit.ly/MGDzu #stocks #stockmarket #finance #money' What I want to do is create one column for the main content ("Miami Pete....now up)", one column for the URL ("ht...