Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'wed,': 0.03; 'c++,': 0.07; 'python': 0.08; 'subject:URL': 0.09; 'ugly': 0.09; 'pm,': 0.10; 'written': 0.14; 'received:209.85.214.174': 0.14; 'received:mail- iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'library': 0.15; 'angelico': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ported': 0.16; 'shorten': 0.16; 'input': 0.17; 'work,': 0.20; 'header:In-Reply-To:1': 0.21; '(but': 0.22; 'all:': 0.23; 'code': 0.24; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'developers.': 0.29; 'at.': 0.30; 'url:au': 0.31; 'anyone': 0.32; 'someone': 0.33; 'to:addr :python-list': 0.33; 'project': 0.33; "isn't": 0.33; 'rather': 0.34; 'chris': 0.34; 'source': 0.34; 'curious': 0.35; 'else': 0.35; 'quite': 0.36; 'open': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'playing': 0.37; 'recently,': 0.37; 'but': 0.38; 'data': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'user': 0.39; 'client': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'grab': 0.63; 'free': 0.63; 'site:': 0.64; 'designed': 0.65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OhUBOT7H9xYJilY3K6i3TcZNf7D7R9pV2h+47bMOdIQ=; b=WP3sGf6GRH5xBkJzG2nvdoDpjq0QaI/FK7hiH4vZXQ0uUewkA26KJcUBesExi8Sdvl 5RUuAXQb51htD6gTv0Wj4EeeAcHBP+GKyD1ESEd0YNVV47pr7CSj2HU/jdJVQ8SKKTR4 bkn7kgKY0ecwdsiEvaDQ+xXkpQ7CHHLoDDDXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qaYPUZ98ErWI2WwPGuhboHVw0y5+lnq8x9RpEf+3gqBAIeI68GJ7vhk5lTyaTu/GFo ONzRnHzFPM7VuR6hGGrbOuY/1RikO1CF8fLLsa4GyHWwvyFBwId4owT7uqqbeS24YwXu N2eNkgs5vQYWBF+TwNPBx1OXlTc4kGYhDRAhU= MIME-Version: 1.0 In-Reply-To: <4DF82F1B.80407@tysdomain.com> References: <4DF82F1B.80407@tysdomain.com> Date: Wed, 15 Jun 2011 14:23:48 +1000 Subject: Re: Dynamic URL shortening From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308111831 news.xs4all.nl 49181 [::ffff:82.94.164.166]:60764 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7670 On Wed, Jun 15, 2011 at 2:03 PM, Littlefield, Tyler wrote: > Hello all: > I started working on a project with someone else quite recently, and he has > a request. The project requires an URL shortener, and he would like it to be > dynamic for both users and developers. Apparently some applications on the > mac allow for the user to input some data on a URL shortener and use that > specific service to shorten URLS. So I'm curious if anyone has had any > experience with this in python/can recommend a library to look at. In my MUD client, RosMud, there's a URL shortener that's designed for people playing a text RPG. The client itself isn't open source (but is free to download), but the URL shortener is. It's all written in C++, so it may not be of much use to you, but feel free to grab it from my rather ugly web site: http://www.kepl.com.au/esstu/rosmud.html The code is Windows-specific, but the TinyURL code is mostly just network work, so by the time you've ported it to Python it will be cross-platform. Chris Angelico