Shosetsu/Parsing.py
async def parse_vn_results(soup):
    """
    Parse Visual Novel search pages.

    :param soup: The BS4 class object
    :return:  A list of dictionaries containing a name and id.
    """
    soup = soup.find_all('td', class_='tc1')
    vns = []
    for item in soup[1:]:
        vns.append({'name': item.string, 'id': item.a.get('href')[1:]})
    return vns
async def parse_vn_results(soup):
    """
    Parse Visual Novel search pages.

    :param soup: The BS4 class object
    :return:  A list of dictionaries containing a name and id.
    """
    soup = soup.find_all('td', class_='tc1')
    vns = []
    for item in soup[1:]:
        vns.append({'name': item.string, 'id': item.a.get('href')[1:]})
    return vns
async def parse_vn_results ( soup ) : soup = soup . find_all ( 'td' , class_ = 'tc1' ) vns = [ ] for item in soup [ 1 : ] : vns . append ( { 'name' : item . string , 'id' : item . a . get ( 'href' ) [ 1 : ] } ) return vns
Parse Visual Novel search pages.

    :param soup: The BS4 class object
    :return:  A list of dictionaries containing a name and id.
Parse Visual Novel search pages .