File size: 367 Bytes
36c9b26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import wikipedia

def search_wiki(text):
    article_list = wikipedia.search(text)
    wikipedia.page(article_list[0])


def get_wiki(search_term):
    return wikipedia.page(search_term)



# src = search_wiki('spacex')
get = get_wiki('spacex')
# print(src)
print(get)
print(wikipedia.summary("Python Programming Language"))
x = search_wiki('spacex')

print('done')