how to make wikipedia using python

Solutions on MaxInterview for how to make wikipedia using python by the best coders in the world

showing results for - "how to make wikipedia using python"
Giorgio
19 May 2016
1please subscribe my channel - https://bit.ly/2Me2CfB
2
3import wikipedia
4
5word = str(input("ENTER THE WORD : "))
6
7print("WHAT DO YOU WANT TO GET OF THE WORD YOU ENTERED : ")
8print(":\t1\tSummary")
9print(":\t2\tExamples")
10print(":\t3\tEssay")
11choice = int(input("ENTER YOUR CHOICE : "))
12if choice == 1:
13    print(word, " :")
14    wki1 = wikipedia.summary(word)
15    print(wki1)
16elif choice == 2:
17    print(word, " :")
18    wki2 = wikipedia.search(word)
19    print(wki2)
20elif choice == 3:
21    print(word, " :")
22    wki3 = wikipedia.page(word)
23    print(wki3)
24else:
25    print("INVALID CHOICE!!")