'Parse the links passed, if a link is specified without an alias then just create the alias of the same name as the link'

def get_links(self, links):

    processed_links = {}
    for link in links:
        parsed_link = link.split(':', 1)
        if (len(parsed_link) == 2):
            processed_links[parsed_link[0]] = parsed_link[1]
        else:
            processed_links[parsed_link[0]] = parsed_link[0]
    return processed_links
