def WikiLinksFeMaleBoxer():
    '''Grabs the entire boxers names on the list of male boxers! too many!'''
    boxers_male_names = wikipedia.page("List_of_female_boxers")
    tts_typoEffect(boxers_male_names.title)
    boxers = [boxers_male_names.links]
    # Use a search array loop grab data and then allow search ! :)
    # for now just print vertical!
    for boxer in boxers:
        tts_typoEffect("\n".join(boxer))
Ejemplo n.º 2
0
def ufcSearch(data):
    '''This function allows the bot to use the API to get uFC fighter data'''
    try:
        get_ufc_data = Fighter()  # this is the class module provide by the API
        get_ufc_data.get_fighter(data)
        name = get_ufc_data.name
        ufc_record = get_ufc_data.record
        ufc_summary = get_ufc_data.summary  #the name of fighter
        tts_typoEffect("{} {} {}".format(name, ufc_record, ufc_summary))
    except PyUFCError:  # call forth this error if the fighter is not found
        tts_typoEffect("The UFC fighter is not found")
def WikiMoreInfoBoxer(text):
    '''This function will grab the subheadings '''
    try:
        #Really nice function i created ! :)
        boxer=wikipedia.page(text)
        boxerInfo=wikipedia.summary(text,end="/n")
        tts_typoEffect(boxer.title)
        tts_typoEffect(boxerInfo)
    except wikipedia.DisambiguationError:
        tts_typoEffect("Type again")
Ejemplo n.º 4
0
def main():

    bg_tts("Talk to Guru Kate about sports")

    tts_typoEffect("Please choose Which sport you want to talk about")
    tts_typoEffect("Boxing Type 1")
    tts_typoEffect("Rugby Type 2 ")
    userType = input("Talk to Guru Kate about sports").lower()
    if userType == "boxing":
        print("function")
    elif userType == "rugby":
        print("function")
    elif userType == "cricket":
        print("function")
    elif userType == "swimming":
        print("function")