Skip to content
Mo-AlaniPublic

About

Get the last URL from a redirecting URL

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Last URL

last-url is s simple python script written to resolve the last URL from a redirection URL. You know how annoying it could be receiving this bit.ly link that you don't know where it leads? This is the script for you.


Downloading the script

On your machine just type:

git clone https://github.com/Mo-Alani/last-url.git


How to use the script

The script was written to be a simple command line script to resolve the final URL after redirection. To get the final URL only (without the rest of the redirection history):

python last-url.py -u http://your-URL-here

or

python3 last-url.py -u http://your-URL-here

If you want to see the full history of redirections (all the intermediate links, if any):

python last-url.py -u http://your-URL-here -f

or

python3 last-url.py -u http://your-URL-here -f

If the URL has "&" in it, you'll need to wrap it with quotation marks:

python last-url.py -u "http://your-URL-here-with-&-character" -f

or

python3 last-url.py -u "http://your-URL-here-with-&-character" -f

Example:

    git clone https://github.com/Mo-Alani/last-url.git
    cd last-url
    python last-url.py -u http://mohammedalani.com -f

Contributors

Mohammed M. Alani (@Mo-Alani)

About

Get the last URL from a redirecting URL

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages