Forget the TinyUrl website!
1)Install w3m browser
Use http://prdownloads.sourceforge.net/w3m/
Or your favourite Linux repository
For Puppy Linux there is a pet http://tinyurl.com/3p6bf34
2)Copy, paste & make executable & then call it from the command line
#!/bin/bash
#start
echo "Paste long url & enter"
read url
base='tinyurl.com/api-create.php?url='
turl="$base$url"
#echo "turl $turl"
tu=$(w3m -dump $turl)
echo "TinyUrl is $tu"
#end
3) Output is
# TU
Paste long url & enter
http://euanmearns.com/
TinyUrl is http://tinyurl.com/r87dnxz
4) Works on PuppyLinux &
GNU bash, version 3.00.16(1)-release (i486-t2-linux-gnu)
It might work in Cygwin or W10
5) So much easier! so much faster!
Why bother with the website?
PS Does this help answer the "Why Linux?" qu?
Got a credit card? use our Credit Card & Finance Calculators
Thanks to eyeball08,Wondergirly,bofh,johnstevens77,Bhoddhisatva, for Donating to support the site
Get TinyUrls the easy way
-
- Lemon Pip
- Posts: 71
- Joined: November 30th, 2017, 11:14 am
- Has thanked: 1 time
- Been thanked: 20 times
Re: Get TinyUrls the easy way
On reflection, I should have said that the website https://tinyurl.com/ converts long urls like
'http://www.stockcharts.com/c-sc/sc?s=PRU.L&p=D&yr=5&mn=0&dy=0&i=t40345613568&r=1503767028109'
into short ones like http://tinyurl.com/y7aopggh without truncating them
'http://www.stockcharts.com/c-sc/sc?s=PRU.L&p=D&yr=5&mn=0&dy=0&i=t40345613568&r=1503767028109'
into short ones like http://tinyurl.com/y7aopggh without truncating them
Return to “Technology - Computers, TV, Phones etc.”
Who is online
Users browsing this forum: No registered users and 32 guests