Questions tagged [tinyurl]

TinyURL is a URL shortening service, a web service that provides short aliases for redirection of long URLs.

Short URL aliases are seen as useful because they are easier to write down, remember or pass around, are less error-prone to write, and also fit where space is limited such as Twitter.

Kevin Gilbertson, a web developer, launched the service in January 2002 so that he would be able to link directly to newsgroup postings that frequently had long and cumbersome addresses.

68 questions
112
votes
3 answers

How does a URL Shortener work?

I wonder how a URL Shortener works, like how they extract the text from address bar and map it to correct URL, later redirect it. What programming language do they use? How do they maintain the history of the mapping? How do they ensure the…
prap19
  • 1,818
  • 3
  • 16
  • 26
46
votes
12 answers

How to make unique short URL with Python?

How can I make unique URL in Python a la https://i.stack.imgur.com/turb6.jpg or http://tumblr.com/xzh3bi25y When using uuid from python I get a very large one. I want something shorter for URLs.
Esteban Feldman
  • 3,288
  • 6
  • 32
  • 31
20
votes
5 answers

Detect destination of shortened, or "tiny" url

I have just scraped a bunch of Google Buzz data, and I want to know which Buzz posts reference the same news articles. The problem is that many of the links in these posts have been modified by URL shorteners, so it could be the case that many…
conradlee
  • 12,985
  • 17
  • 57
  • 93
18
votes
6 answers

Using tinyurl.com in a .Net application ... possible?

I found the following code to create a tinyurl.com url: http://tinyurl.com/api-create.php?url=http://myurl.com This will automatically create a tinyurl url. Is there a way to do this using code, specifically C# in ASP.NET?
mattruma
  • 16,589
  • 32
  • 107
  • 171
14
votes
1 answer

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…
TimLeung
  • 3,459
  • 6
  • 42
  • 59
9
votes
9 answers

How to generate unguessable "tiny url" based on an id?

I'm interested in creating tiny url like links. My idea was to simply store an incrementing identifier for every long url posted and then convert this id to it's base 36 variant, like the following in PHP: $tinyurl = base_convert($id, 10, 36) The…
Tom
  • 8,536
  • 31
  • 133
  • 232
5
votes
2 answers

How does tiny url work

I have been wondering how tiny url works. I would like to develop something similar for my site, but as most people, I use GUIDs for ids. When an object is created, should I then generate a 10 character random string to use as public id, or is there…
Dofs
  • 17,737
  • 28
  • 75
  • 123
5
votes
1 answer

How to use jQuery to produce TinyURL

I'm trying to build a jQuery function that will allow me to produce a TinyURL from some other link for micro blogging reasons (yes, twitter)... I found this tutorial from James Padolsey, but am not getting a response back from the…
RSolberg
  • 26,821
  • 23
  • 116
  • 160
4
votes
2 answers

Long URLs (Bitly and TinyURL)

I'm sitting with a problem where I need to pass more than 2000 characters from my Flash application to an HTML page which reads the information and displays the correct options made in the Flash app the person came from. All's good but on the final…
Sixfoot Studio
  • 2,951
  • 7
  • 26
  • 35
4
votes
1 answer

How to consume Tiny-URL API for mvc4 in asp.net

I want to use Tiny-URL API in MVC4, any ideas how can I consume that API in my solution? I refereed its documentation but it was in PHP document link
Archana
  • 376
  • 2
  • 12
4
votes
5 answers

Tinyurl API Example - Am i doing it right :D

we use super-long Hashes for the Registration of new Users in our Application. The Problem is that these Hashes break in some Email Clients - making the Links unusable. I tried implementing the Tinyurl - API, with a simple Call, but i think it times…
Paul Weber
  • 6,518
  • 3
  • 43
  • 52
3
votes
1 answer

How to shorten a url that contained "#" symbol by TinyURL api?

For example, I want to shorten this url: https://docs.python.org/3/library/subprocess.html#popen-constructor I tried to pass https://docs.python.org/3/library/subprocess.html#popen-constructor as url parameter, but the returned url is actually…
PenutChen
  • 193
  • 8
2
votes
2 answers

Finding all tweets which link to a specific domain (including shortlinks)

I'm looking to find all tweets which link to example.com, including all tweets from the major shortlink providers - let's say just bitly, goo.gl, t.co and TinyURL for now (though I'm open to more suggestions). Clearly I can search using the Twitter…
Ina
  • 4,400
  • 6
  • 30
  • 44
2
votes
2 answers

How to get the complete URL address most efficiently?

I'm using a Java program to get expanded URLs from short URLs. Given a Java URLConnection, among the two approaches, which one is better to get the desired result? Connection.getHeaderField("Location"); vs Connection.getURL(); I guess both of them…
R1234
  • 484
  • 9
  • 20
2
votes
4 answers

General url shortener decoder library for PHP

Is there any kind of library for PHP which can decode tinyurl, Goo.gl, bit.ly and other url shortened urls without making CURL requests?
Jauzsika
  • 3,171
  • 3
  • 23
  • 32
1
2 3 4 5