def getIndex(line: str, word: str):
    """
    Get the starting and ending index of a word in a given string

    Parameters
    ----------
    line : str\n
            A string containing the 'word' from which indexes are to be extracted
            from
    word : str\n
            A string that need to be found in the 'line', and need indexes
            extracted

    Returns
    -------
    tuple\n
        A tuple of the form (start, end), where start and end are the starting
        and ending indexes of the 'word' in the given 'line'
    """

    index = line.find(word)

    if word in ['url']:
        start = (index + len(word) + 2)
        quote = line[start - 1]
        if quote not in ['\'', '"']:
            start = (index + len(word) + 1)
            quote = line[start - 1]
            if quote == '(':
                end = line.find(')', start)
            else:
                end = line.find(quote, start)
        else:
            end = line.find(quote, start)
    else:
        start = (index + len(word) + 2)
        quote = line[start - 1]
        end = line.find(quote, start)

    return (start, end)