@staticmethod
def get_file_path_from_link(link):
    """
        Returns the file_path for a file in a <link> in HTML
        :param link: <link> from HTML
        :type link: str
        :returns: file_path provided in the <link>
        :rtype: str
        """
    if link == '':
        print('getFilePathFromLink: No link provided')
        return
    file_path = ''
    if link.find('href=') > 0:
        file_path = link[link.find('href="') + 6:link.rfind('"')]
    elif link.find('src=') > 0:
        file_path = link[link.find('src="') + 5:link.rfind('"')]
    else:
        print('getFilePathFromLink: Unrecognized pattern :' + link)
        return
    return file_path
