How to make your own web browser in Python.

In this tutorial we create our own web browser, using Python. We also will be using the PyQt5 and PyQtWebEngine library.

What is PyQt5?

PyQt is a Python binding of the cross-platform GUI toolkit Qt, implemented as a Python plug-in. PyQt is free software developed by the British firm Riverbank Computing. PyQt5 is licensed under GPL v3 and a commercial license(For closed sourced software)

Unable to display the image

What is PyQtWebEngine?

PyQtWebEngine is a set of Python bindings for The Qt Company’s Qt WebEngine framework. The framework provides the ability to embed web content in applications and is based on the Chrome browser. The bindings sit on top of PyQt5 and are implemented as three separate modules corresponding to the different libraries that make up the framework.

Requirements

You need Python3x to make your web browser.

Getting Started

Open the terminal or command prompt and type in the following command and press enter

The code

Save this code as app.py . To run the code open the terminal or command prompt in the directory where you have saved your app.py file and type in the following command and press enter.

Results

Unable to display the image

Conclusion

Congratulations, you have made your own web browser😁😁😁.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store