Σκοπός: Σμίκρυνση URL συνδέσμων μέσω διαφόρων ιστοσελίδων (π.χ. tinyurl.com, tr.im, bit.ly)
Λειτουργία: command line & python module
Ιστοσελίδα: http://launchpad.net/surl http://freshmeat.net/projects/surl
Εγκατάσταση:
α) Αποσυμπιέζετε και εκτελείτε:
- Κώδικας: Επιλογή όλων
sudo python setup.py install
β) Το πρόγραμμα λειτουργεί και χωρίς να εγκατασταθεί με setup.py:
- Κώδικας: Επιλογή όλων
python surl/surl.py -h
Παραδείγματα:
- Κώδικας: Επιλογή όλων
$ echo 'http://www.google.com' | surl -s tr.im
http://tr.im/pIU2
$ echo 'http://www.google.com' | surl -s tinyurl.com
http://tinyurl.com/dehdc
$ echo 'this is some text to test it with a link: http://www.google.com' | surl -s tinyurl.com
this is some text to test it with a link: http://tinyurl.com/dehdc
$ echo -e 'this is some text to test it with links: video.google.com code.google.com http://www.google.com' | surl
this is some text to test it with links: http://tinyurl.com/mvazps http://tinyurl.com/mdlx68 http://tinyurl.com/dehdc
Κάνει δειλά-δειλά την εμφάνισή του: http://linux.softpedia.com/get/Internet ... 8463.shtml
Υ.Γ. Ακόμη δεν τέλειωσα όλες τις παραμέτρους (νομίζω έμεινε το --output και το --inline), αλλά λειτουργεί περίφημα!





