File tree Expand file tree Collapse file tree 4 files changed +37
-4
lines changed Expand file tree Collapse file tree 4 files changed +37
-4
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ Supported URL shortening services for shrinking long urls:
36
36
budurl.com
37
37
kl.am
38
38
xr.com
39
+ hurl.ws
39
40
40
41
Shorty can expand any url service by getting the redirect
41
42
location by requesting the tiny url.
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ API available and ready to go!
8
8
+ idek.net
9
9
+ easyuri.com
10
10
+ rubyurl.com
11
- + hurl.ws
12
11
+ nn.nf
13
12
+ piurl.com
14
13
+ icanhaz.com
Original file line number Diff line number Diff line change
1
+ ## Shorty
2
+ ## Copyright 2009 Joshua Roesslein
3
+ ## See LICENSE
4
+
5
+ ## @url hurl.ws
6
+ class Hurlws (Service ):
7
+
8
+ def __init__ (self , username = None ):
9
+ self .username = username
10
+
11
+ def shrink (self , bigurl ):
12
+ parameters = {'url' : bigurl }
13
+ if self .username :
14
+ parameters ['user' ] = self .username
15
+ resp = request ('http://www.hurl.ws/api/' , post_data = urlencode (parameters ))
16
+ return resp .read ()
17
+
Original file line number Diff line number Diff line change @@ -286,6 +286,21 @@ def expand(self, tinyurl):
286
286
287
287
cligs = Cligs ()
288
288
289
+ # hurlws
290
+ class Hurlws (Service ):
291
+
292
+ def __init__ (self , username = None ):
293
+ self .username = username
294
+
295
+ def shrink (self , bigurl ):
296
+ parameters = {'url' : bigurl }
297
+ if self .username :
298
+ parameters ['user' ] = self .username
299
+ resp = request ('http://www.hurl.ws/api/' , post_data = urlencode (parameters ))
300
+ return resp .read ()
301
+
302
+ hurlws = Hurlws ()
303
+
289
304
# toly
290
305
class Toly (Service ):
291
306
@@ -716,20 +731,21 @@ def expand(self, tinyurl):
716
731
'twurl.nl' : tweetburner ,
717
732
'buk.me' : bukme ,
718
733
'fon.gs' : fongs ,
719
- 'to.ly ' : toly ,
734
+ 'ub0.cc ' : urlborg ,
720
735
'fwd4.me' : fwd4me ,
721
736
'xr.com' : xr ,
722
737
'short.ie' : shortie ,
723
738
'sandbox.com' : sandbox ,
724
739
'a.gd' : agd ,
740
+ 'hurl.ws' : hurlws ,
725
741
'digg.com' : digg ,
726
742
'kl.am' : klam ,
727
- 'tweetburner.com ' : tweetburner ,
743
+ 'to.ly ' : toly ,
728
744
'budurl.com' : budurl ,
729
745
'cli.gs' : cligs ,
730
746
'urlborg.com' : urlborg ,
731
747
'is.gd' : isgd ,
732
- 'ub0.cc ' : urlborg ,
748
+ 'tweetburner.com ' : tweetburner ,
733
749
'x.bb' : xr ,
734
750
'tinyurl.com' : tinyurl ,
735
751
}
You can’t perform that action at this time.
0 commit comments