In this video I'll show you how to build a fun little Wikipedia Search Tool For Tkinter and Python.
We can enter in a topic and search for the wikipedia page, and return the content, as well as the title and URL. Or we can search for a general summary of a topic, and designate how many sentences we want to return.
This is not a heavy duty API, so you'll hit rate limits if you make too many searches...but for general use or hobby use, you shouldn't have any trouble at all.
Timecodes
0:00 - Introduction
1:08 - Pip Install Wikipedia
1:46 - Import Wikipedia Into Tkinter App
1:55 - Build Label Frame And Entry Box
2:58 - Create Frame And Textbox With Scrollbar Features
4:35 - Create Vertical And Horizontal Scrollbar For Textbox
5:55 - Configure Scrollbars
7:11 - Create Lookup And Clear Buttons
9:09 - Create Function To Clear The Screen
10:11 - Create Wikipedia Search Function
13:03 - Checkout Wikipedia API Documentation
13:15 - Search Wikipedia For Summary
13:41 - Set Sentence Length For Summary
14:34 - Search Wikipedia For Page Title
15:30 - API Rate Limit Discussion
17:25 - Conclusion
Auf dieser Seite können Sie das Online-Video Build A Wikipedia Search App - Python Tkinter GUI Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer John Elder 02 März 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8,629 Mal angesehen und es wurde von 241 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!