def extract_urls_from_soup(soup):
    """
    Extract a list of urls from a BeautifulSoup object
    :param soup: a BeautifulSoup object
    :return: a list of urls (strings)
    """
    urls = []
    for item in soup.find_all('a'):
        href = item.get('href')
        urls.append(href)
    return urls