def parse_ncbi_fetch_fasta(soup, server):
    """ Given the output of `ncbi_fetch_fasta` and
    the server of interest, returns fastq or bam urls 
    hosted in the specified server

    :param soup: BeautifulSoup object (output of `ncbi_fetch_fasta` 
    with fastq information
    :type: bs4.BeautifulSoup object
    
    :param server: host server of urls to be returned (AWS, GCP or NCBI)
    :type: str
    
    :rparam: list of urls
    :rtype: list
    """
    links = []
    for alternative in soup.find_all('Alternatives'):
        if alternative.get('org') == server:
            links.append(alternative.get('url'))
    if 'bam' in links[0] or len(links) > 2:
        links.pop()
    return links