Enter a reason for deleting this comment
Hello all. Does anyone know of some online site or something I can use to get the full URL of a list of shortened URLS?
I don't want to visit them all myself, one by one, that would take too long.
I'm talking about a list of shortened URLs that is about 500 URLs long.
So it would take too long to get the full URL for them all that way.
I need to know of some online site/tool I can paste the URLs into it and hit submit and it just basically gets me the full URL for them.
Does anyone know of anything like that?
Do you mean something like this Mike?
http://www.checkshorturl.com/ or maybe this one http://www.searchcommander.com/seo-tools/bulk-url-checker/
I have never done something like this myself since I never needed to so I hope one of these works!
Are you sure you want to delete this post?
Thanks Tron sort of yeah! But on a much larger scale!
If anyone needs, here is a Bash script for expanding short URLS. It's pretty basic, so you might need to tweak it to your usage.
#A bash script which creates a list of expanded urls ($PWD/long.txt) from a list of short urls ($PWD/short.txt). 1 URL per line. This script depends on Wget, Grep, and Sed (sudo apt-get install wget grep sed). This script does not do any error checking; you should probably add some to avoid getting bad results if a url fails to resolve. This script is released to the public domain via CC0 1.0 < https://creativecommons.org/publicdomain/zero/1.0/ >.
while read short; do
wget --max-redirect=0 -O- "$short" 2>&1 | grep -a "Location:" | sed 's/Location: //g' | sed 's/ \[following\].*//g' >> long.txt
It looks like the short URL is getting very popular now because that’s what I usually see now when someone would share a link of a media like a newspaper. At first I thought that the shortened link was not coming from the online newspaper’s site but when I checked on one of those links, I was surprised that it was indeed a legitimate site. Now this question of mine – why would webmasters use the shortened link, what is the benefit?