GithubHelp home page GithubHelp logo

long_url's Introduction

long_url

Overview

This code is designed to unshorten short URLs, follow recursive redirects and output the end destination to the console coupled with the Bluecoat Site Review categorisation of the final URL in the chain. This can be useful if you have several short URLs to examine and need to quickly determine the destination and whether it's perceived by Bluecoat to be malicious.

Install

There are a couple of requirements for the script to run correctly, as detailed in requirements.txt. Installation can be carried out via executing the following:

$ pip install -r requirements.txt

Run

After installing the requirements, simply invoke via the command line, passing in a file containing your short urls as an argument, e.g.

$ python longurl.py -i urls.txt [-b]
    options:
    -i / --infile : specifies the input file containing the urls to examine.
    -b / --bluecoat : specifies whether you wish to perform a bluecoat site review on the destination url.

Example

Some sample URLs are provided in the urls.txt all leading (shamelessly) to my website. They also follow recursive redirects, for example the bit.ly link redirects to goo.gl which redirects to colin.guru.

example

Licence

Released under MIT Licence. Enjoy.

Feedback

Find me on Twitter @cybercdh

long_url's People

Contributors

m0atz avatar

Stargazers

 avatar Marcos Gómez avatar

Watchers

 avatar

Forkers

dc1vanda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.