LearnProgramming/LPMCBot — pull request #59 by ecnahc515 (2012-08-30 02:49:54+00:00)
Title: URL Parsing fix and Bitly URL Shortener

URL Parse Fix
===
I changed the URL parsing to use a better regex, and then changed the use of sockets to straight urllib2 since it handles this better.

Bitly URL Shortener
===
I added a new file bitly.py, which contains a function for accessing bitly's URL shortening api. I call this function after parsing the url, and grabbing the title, and then combine all this for a new output when a user enters a url.

### Note on Bitly API changes ###
Please use your own bitly username and api code, as that way I can use mine for other things, like testing!

#### Page title minor change ####
I changed the title 'fix' which removes whitespace, as the other one wasn't working for me.