(lang_links, lang, cat_name)
return cat_members
Args:
        lang_links (Dict[str, :class:`wikipediaapi.WikipediaPage`])
        lang (str)
        cat_name (str)

    Returns:
        List[str]
Args:
        lang_links (Dict[str, :class:`wikipediaapi.WikipediaPage`])
        lang (str)
        cat_name (str)
Args : lang_links ( Dict [ str : class : wikipediaapi . WikipediaPage ] ) lang ( str ) cat_name ( str )
def get_category_members_from_lang_links(lang_links, lang, cat_name):
    """
    Args:
        lang_links (Dict[str, :class:`wikipediaapi.WikipediaPage`])
        lang (str)
        cat_name (str)

    Returns:
        List[str]
    """
    # import wikipediaapi

    try:
        cat_page = lang_links[lang]
    except KeyError:
        logging.warning("no %s pages available for %s", cat_name, lang)
        return []
    cat_members = list(
        {
            title
            for title, page in cat_page.categorymembers.items()
            # if page.ns == 0  # wikipediaapi.Namespace.MAIN
        }
    )
    random.shuffle(cat_members)
    logging.info("fetched %s %s titles", len(cat_members), cat_name)
    return cat_members
def get_category_members_from_lang_links ( lang_links , lang , cat_name ) : # import wikipediaapi try : cat_page = lang_links [ lang ] except KeyError : logging . warning ( "no %s pages available for %s" , cat_name , lang ) return [ ] cat_members = list ( { title for title , page in cat_page . categorymembers . items ( ) # if page.ns == 0  # wikipediaapi.Namespace.MAIN } ) random . shuffle ( cat_members ) logging . info ( "fetched %s %s titles" , len ( cat_members ) , cat_name ) return cat_members