def get_max_attempts(argument):
    """
    Gets the maximum number of scraping attempts from the raw argument. 
    """
    if argument == None: 
        return 5 # default
    if argument == 'no': 
        return float("inf") # unlimited number of attempts
    return int(argument)