TinyURL

Chat & Messenging

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org

1
Score 60%
Description:

Konversation script that makes a TinyURL (http://tinyurl.com) from a given URL.

Note: No longer needs curl, works with Curl and wget
(Thanks Billy Oliva)

Just copy it to /usr/share/apps/konversation/scripts/ (system wide) or to ~/.kde/share/apps/konversation/scripts/ (for just your user)


Last changelog:

11 years ago

v1.0
[li]1st release[/li]

V1.1
[li]Now uses env[/li]
[li]Now checks for an argument (URL)[/li]
[li]Now alerts user if it fails to get a URL[/li]

V1.1.1
(Minor update)
[li]Added ability to use a NickName in the message.[/li]

V1.2
[li]Doesn't depend on Curl any more, works with Curl or Wget[/li]
[li]Displays and error and usage when no URL is given[/li]
[li]Included README and INSTALL files[/li]

V1.3
[li]Rewritten so that you can include a message/description with the link[/li]

lemoicavalier

11 years ago

A few other places where I'd love to be able to use this: Kopete, Konqueror, probably KMail and maybe KNode (newsgroup users tend to be a little paranoic :D)

Report

aerdogan

11 years ago

#!/bin/bash
PORT=$1
SERVER=$2
TARGET=$3

NICK=$5

export URL="$4"
TINYURL="$(curl -s -i http://tinyurl.com/create.php?url=$URL|grep "The following URL" -A3|tail -1|awk -F\> '{print $3}'|sed 's,</b,,')"
echo $@
echo $TINYURL
dcop $PORT default say $SERVER "$TARGET" "$5: $TINYURL"

Report

C

stdin

11 years ago

Thanks for the idea, it's now been added to the script :)

Report

op4latino

11 years ago

Heh, nice. I don't have curl installed and I didn't feel like install it, so I changed the curl command for wget and it worked

wget -T10 -t2 -qO- http://tinyurl.com/create.php?url=$URL|grep "The following URL" -A3|ta.....

Report

C

stdin

11 years ago

The script now checks for curl and used wget if it's not found, thanks :)

Report

11 years ago

v1.0
[li]1st release[/li]

V1.1
[li]Now uses env[/li]
[li]Now checks for an argument (URL)[/li]
[li]Now alerts user if it fails to get a URL[/li]

V1.1.1
(Minor update)
[li]Added ability to use a NickName in the message.[/li]

V1.2
[li]Doesn't depend on Curl any more, works with Curl or Wget[/li]
[li]Displays and error and usage when no URL is given[/li]
[li]Included README and INSTALL files[/li]

V1.3
[li]Rewritten so that you can include a message/description with the link[/li]

product-maker 7 13

File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
1.3
updated Jun 26 2007
added Jun 14 2007
downloads today
0
page views today 4
System Tags app software