By Viraj Nayak
In this project, we will use beautiful soup to search for packets using a user-defined keyword. We will then create a GUI using Tkinter for the same and convert it to an executable(.exe) file.
Since the Coders Packet does not have a search option in this project, we will use beautiful soup to search for packets using a user-defined keyword. We will then create a simple GUI using Tkinter for the same and then convert it to an executable(.exe) file using Pyinstaller.
The Tkinter GUI freezes when the application is running. This due to the fact that the main loop of the app is interrupted by our search process; hence, the app displays the message not responding and freezes until the search returns the result. This problem can be solved by using threading and multiprocessing. In this project, we are going to use threading to solve the issue of Tkinter GUI freezing.
Below is an image of the Tkinter GUI with search results for the keyword chatbot
Code for creating an executable file of your app.py file using Pyinstaller:
In your command prompt
cd location_of_your_app.py pyinstaller --onefile app.py
Installing the libraries required:
pip install beautifulsoup4 pip install tk # for Tkinter pip install pyinstaller
Submitted by Viraj Nayak (nayakviraj21)
Download packets of source code on Coders Packet