Create Your Own Browser Using Python | Python Project | PyQt5

Programming Hero · 493K views · 2021 · 28:32

Open on YouTube

Python, Ruby & scripting languagesWeb developmenttutorial

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they followed to build a PyQt5 browser, usually when asking why their copy of the code fails or how to extend it.

Recommended by 1 people across 1 different months, 2021 to 2023.

What it is

A 28-minute beginner project tutorial from Programming Hero that builds a minimal web browser in about 40 lines of Python using PyQt5 and QWebEngineView. It adds a navigation bar with back, forward, home and URL entry, and the code is published on GitHub.

What people said

Recommends Dinorigami · 2023-10 · Stack Overflow · on “Can an executable file display a website by precising the url? Can I run a specific website on my own .exe file?”

I managed to make what I wanted. The trick was to create a mini Web-browser using the PyQt5 library. I found a lot of tutos on YouTube and it worked perfectly well. I used this tutorial to make it. I put the link bellow in case it can help someone ‍♂️ [this video]

Cites Daredevil3722 · 2021-08 · Stack Overflow · on “Import error with PyQt5 : undefined symbol:_ZNSt12out_of_rangeC1EPKc,versionQt_5”

I had watched a video on YouTube about making your own web browser using PyQt5. Link to video: [this video] , I found it interesting and decided to try it out on my system. Please note that I am using a derivative of Arch Linux (Garuda). Here's the code: import sys from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtWebEngineWidgets import * class MainWindow(QMainWindow) : def __init__(self): super(MainWindow, self).__init__() self.browser = QWebEngineView() self.browser.setUrl(QUrl(' [LINK] ')) self.setCentrealWidget() self.showMaximized() app = QApplication(sys.argv) QApplication.setApplicationName('Chrome Killer') window = MainWindow() app.exec_() Unfortunately, I encountered

Cites quicktest · 2022-10 · Stack Overflow · on “Browser opens blank screen, ignores url”

I'm making a custom browser, following a tutorial: [this video] I have coded everything to the T, and for some reason when I open the browser, even though I have self.browser.setUrl(QUrl(' [LINK] ')) set for the default url to open to. How can I fix this? The code: from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtWebEngineWidgets import * class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.browser = QWebEngineView() self.browser.setUrl(QUrl(' [LINK] ')) self.setCentralWidget(self.browser) self.showMaximized() # navbar navbar = QToolBar() self.addToolBar(navbar) back_btn = QAction('Back', self) back_btn.triggered.connect(self.browser.back

Cites AceBrickCreations · 2022-12 · Stack Overflow · on “How to search using a particular keyword in URL bar in PyQt5”

I'm a newbie in Python and I need help So, I made a web browser using PyQt5 and it is running just fine. But, I want to code as if we can type anything in the URL bar and it shows various links. I will attach an image of the code and the browser I did this by watching Programming Hero's video. Please help me out. Video Link : [this video]