Make short URLs using various sites

Default service

Asked by Alexander Skwar on 2010-10-07

Hello.

How do I set a "default service" which the surl CLI surl.py is supposed to use? Is there some sort of rc / configuration file?

Alexander

Question information

Language:
English Edit question
Status:
Solved
For:
surl Edit question
Assignee:
No assignee Edit question
Solved by:
Savvas Radevic
Solved:
2010-10-07
Last query:
2010-10-07
Last reply:
2010-10-07
Ahmed El-Mahdawy (propeng) said : #1

Hello,

Currently, you must supply a service name every time you make a request (for example "surl -c http://example.com -s sn.im"). However, you can always file a bug requesting that a feature should be implemented.

Best Savvas Radevic (medigeek) said : #2

On top of that, you can always hack into it. :)
Find surl.py and the line matching:

'service' : 'tinyurl.com',

Change that line and/or other configuration lines around that line.

Alexander Skwar (a.skwar) said : #3

Thanks to both of you.