It is currently Tue May 21, 2013 5:57 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Bit.ly URL shortener AND URL decoder
PostPosted: Fri Feb 26, 2010 12:08 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
I have started using Twitter more and more lately, and I wanted a quick and easy way to shorten URLs so they would fit inside the limited Twitter textbox.
So, I wrote this small utility that takes a URL as input, and converts it to a Bit.ly URL using the Bitly API.
When you run the program you will be asked for a URL for input. When it has shortened the URL, you will be asked to copy the short URL to the clipboard. That's it.
Like I said, I wanted a small and easy program to do this so I didn't have to go to the website to do it manually.

If you have any suggestions, please feel free to post them here. My plan is to create a simple taskicon program with a simple popup menu system to display various options.

You can download the test program here: http://www.geotrail.no/downloads/Bitly_x86.exe

URL Decoder
    URL Decoder now works with the following URL shorteners:
  • Bit.ly
  • Is.gd
  • dlvr.it
  • Tinyurl.com
  • Cot.ag
  • j.mp

Update! I've written a small program that decodes the Bit.ly URL's, for all the short url skeptics out there ;)
http://www.geotrail.no/downloads/Bitly_Decoder.exe

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Last edited by GeoTrail on Fri Mar 05, 2010 12:53 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener
PostPosted: Fri Feb 26, 2010 2:26 am 
Offline
Addict
Addict
User avatar

Joined: Tue Jan 02, 2007 8:16 pm
Posts: 4328
Location: Cypress TX
Geotrail.
EXCELLENT WORK!!!
8)

I am NOT trying to put you down or distress your coding skills. I apologize if that is what it seems. Yes TWITTER needs to loosen up on the URL restrictions since they have actually generated this new tool and all the silly things that malware and hostage ware people do with it!

I have known you for as long as I have been on this board and you don't have an illicit coding bone in your body that I can tell! :D

My company, as a security practice, BANS all types of tinyURL links.

They insist the full path to the link is displayed.

It can get amazing and yes, at times such URL look more like strings of alphabet soup than actual pointers.

But redacted URLs are a risk. It might be a problem later.

I know... I know... Rook is being paranoid again!!! Shut up Rook. Go play somewhere else...

_________________
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener
PostPosted: Fri Feb 26, 2010 3:08 am 
Offline
Addict
Addict

Joined: Sat Oct 17, 2009 10:51 pm
Posts: 919
Rook: OT, your avatar really looks like you.

_________________
If you are new to PB you should check out the CodeArchiv. It has examples for almost everything you would want to do in PB.


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener
PostPosted: Fri Feb 26, 2010 3:41 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Thanks Rook.
No, I do understand your skepticism concerning shortened urls. I am pretty skeptical to them myself, so I only open the urls from Twitter people I trust.

I am working on a simple UI for the program now, but it will run as a task icon program. The whole idea is to make it as small and simple as possible.

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener
PostPosted: Fri Feb 26, 2010 8:40 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Oct 24, 2008 2:07 pm
Posts: 228
clean job, thanks GeoTrail :D


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Thu Mar 04, 2010 11:23 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
For all you short url skeptical people out there, I've written a small program that decodes the Bit.ly URL's.
See the first post for the download link.

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Tue Mar 09, 2010 12:01 am 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Uhhh like uuhhhh BUMP and stuff. uuuuhhhh

Sorry, too much Beavis & Butthead lately.

So has anyone tried the URL decoder lately? Any comments or suggestions?
I'm planning on putting both programs together into one simple to-use taskbar-icon program.

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Tue Mar 09, 2010 4:28 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 22, 2004 4:12 pm
Posts: 2327
Location: Norway
GeoTrail wrote:
So has anyone tried the URL decoder lately? Any comments or suggestions?
I'm planning on putting both programs together into one simple to-use taskbar-icon program.

Haven't really tried it, but maybe I will next time someone (I don't trust) sends me one of those weird URL's :P Good work though!

How do you decode exactly? By fetching the "Location" from the HTTP header? That should work on any URL that use direct redirects (not html or javascript).

EDIT: Just tested it, I wrote "ddf" just for fun and woah it returned an URL! So it identifies the "structure" of the "ID string" I write and then takes a guess at which URL-shortening-site site it is and then connects to that site to figure out which URL it points too? (since I didn't have to enter the full URL)

_________________
Repeat
  sleep()
  eat()
  work()
Until death Or suicide


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Tue Mar 09, 2010 5:16 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Bo it doesn't fetch any headers. It uses the Bit.ly API calls using POST and GET ;)

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Tue Mar 09, 2010 5:42 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 22, 2004 4:12 pm
Posts: 2327
Location: Norway
GeoTrail wrote:
Bo it doesn't fetch any headers. It uses the Bit.ly API calls using POST and GET ;)

What about the other ones you said you support:
Quote:
* Is.gd
* dlvr.it
* Tinyurl.com
* Cot.ag
* j.mp

They all have API's?

_________________
Repeat
  sleep()
  eat()
  work()
Until death Or suicide


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Mon Mar 22, 2010 5:35 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
They all use the same API calls.

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Mon Feb 20, 2012 5:01 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
Does anyone still use these programs?
Reason I ask is because I'm planning on writing a new version from scratch with both the encoder and decoder in one program, with a (hopefully) nice interface and the option to automatically monitor the clipboard for bit.ly and other shortened urls and you will get an info window displaying the decoded url and an option to open the url in icognito mode ;) For those skeptics out there :) Rook) ;) hehehe

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Mon Feb 20, 2012 6:39 pm 
Offline
Addict
Addict

Joined: Sat Oct 17, 2009 10:51 pm
Posts: 919
RIP Rook. :cry:

_________________
If you are new to PB you should check out the CodeArchiv. It has examples for almost everything you would want to do in PB.


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Mon Feb 20, 2012 8:10 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 13, 2004 12:45 am
Posts: 2749
Location: Bergen, Norway
What??? :shock:

_________________
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!


Top
 Profile  
 
 Post subject: Re: Bit.ly URL shortener AND URL decoder
PostPosted: Mon Feb 20, 2012 9:24 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 2485
Location: New Zealand
viewtopic.php?f=17&t=48053


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye