Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

DEPARTMENT OF COMPUTER ENGINEERING

MICRO PROJECT REPORT

Academic year: 2022 – 2023

Subject: Programming with Python

Subject code: 22616

Title: Browser Design using Python

Submitted by:

Sr. Roll No. Enrolment No. Name


No.
1
Latthe Education Society’s Polytechnic, Sangli
Department of Computer Engineering

CERTIFICATE
This is to certify that this micro project is submitted in partial fulfilment of progressive

assessment in the course Programming with Python (22616) of sixth semester of Diploma in

Computer Engineering for the academic year 2022-23 as prescribe in the curriculum.

Sr. Roll No. Enrolment No. Name


No.
1

Course Co-ordinator
Rationale

A web browser (also referred to as an Internet browser or simply a browser) is application


software for accessing the World Wide Web or a local website. When a user requests a web
page from a particular website, the web browser retrieves the necessary content from a web
server and then displays the page on the user's device. A web browser is not the same thing as
a search engine, though the two are often confused. A search engine is a website that
provides links to other websites. However, to connect to a website's server and display its
web pages, a user must have a web browser installed. Web browsers are used on a range of
devices, including desktops, laptops, tablets, and smartphones. In 2020, an estimated 4.9
billion people used a browser. The most used browser is Google Chrome, with a 63% global
market share on all devices, followed by Safari with 20%.

Features :
The most popular browsers have a number of features in common. They automatically log
browsing history or can be used in a non-logging private mode. They also allow users to set
bookmarks, customize the browser with extensions, and can manage user passwords. Some
provide a sync service and web accessibility features. Traditional browser arrangement: UI
features above page content.

Most browsers have these user interface (UI) features:

• Allow the user to open multiple pages at the same time, either in different browser
windows or in different tabs of the same window.
• Back and forward buttons to go back to the previous page visited or forward to the
next one.
• A refresh or reload and a stop button to reload and cancel loading the current page. (In
most browsers, the stop button is merged with the reload button.)
• A home button to return to the user's home page.
• An address bar to input the URL of a page and display it, and a search bar to input
terms into a search engine. (In most browsers, the search bar is merged with the
address bar.)

While mobile browsers have similar UI features as desktop versions, the limitations of touch
screens require mobile UIs to be simpler. The difference is significant for users accustomed to
keyboard shortcuts. The most popular desktop browsers also have sophisticated web
development tools.

Besides the common usage of graphical browsers, there are niche text-based and headless
types of browsers.
Aim of the project

• To develop Web Browser in Python.


• To study various packages available for developing Web Browser in Python.

Intended course outcomes

1. Display message on screen using Python script on IDE.


2. Develop Python program to demonstrate use of Operators.
3. Perform operations on data structures in Python.
4. Develop functions for given problem.
5. Design classes for given problem.
6. Handle exceptions.

Literature review

1. https://www.javatpoint.com/how-to-install-python
I studied, how to install Python on my machine

2. https://www.tutorialspoint.com/python/index.htm
I learned about Python

3. https://www.geeksforgeeks.org/creating-a-simple-browser-using-pyqt5/
I learned to develop Web Browser desgin in python
Actual methodology

1. Firstly we collect the information about my project.


2. We discussed the topic of project with my subject teacher.
3. After taking guidance of my subject teacher and by the references of done related
website.
4. Later we sorted the collected information in proper way and arranged it as per the
requirement.
5. After arranging the information in proper way and arranged it as per the requirement.
6. After arranging the information We prepared the layout and contents of the project.
7. Lastly we made necessary corrections and gathered some of more required
information.
8. After arranging the information We prepared the layout and contents of the project.
9. Lastly we made necessary corrections and gathered some of more required
information.

Resources required

Sr. Name of Resource Broad Specification Quantity


No.
1 Computer System Processor - AMD 1
Ryzen 5 3500U with
Radeon Vega Mobile
Gfx 2.10 GHz

Installed RAM - 8.00


GB

System type - 64-bit


operating system, x64-
based processor

2 Additional Software Python, PyCharm 1


IDE, Microsoft Office

3 Operating System Windows 11 1


Program 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('http://google.com'))
self.setCentralWidget(self.browser)
self.showMaximized()
navbar = QToolBar()
self.addToolBar(navbar)
back_btn = QAction('Back', self)
back_btn.triggered.connect(self.browser.back)
navbar.addAction(back_btn)
forward_btn = QAction('Forward', self)
forward_btn.triggered.connect(self.browser.forwa
rd)
navbar.addAction(forward_btn)
reload_btn = QAction('Reload', self)
reload_btn.triggered.connect(self.browser.reload)
navbar.addAction(reload_btn)
home_btn = QAction('Home', self)
home_btn.triggered.connect(self.navigate_home)
navbar.addAction(home_btn)
self.url_bar = QLineEdit()
self.url_bar.returnPressed.connect(self.navigate_t
o_url) navbar.addWidget(self.url_bar)
self.browser.urlChanged.connect(self.update_url)
def navigate_home(self):
self.browser.setUrl(QUrl('http://programminghero.com'))
def navigate_to_url(self):
url = self.url_bar.text()
self.browser.setUrl(QUrl(url))
def update_url(self, q):
self.url_bar.setText(q.toString())
app = QApplication(sys.argv)
QApplication.setApplicationName('Web Browser')
window = MainWindow()
app.exec_()
Output
Skill developed

1. I have learned various python packages

2. I have learned to develop Web Browser in Python

Area of future development

1. New tab feature Can be added

2. Bowering history feature can be added


Action Plan

Name of
Planne
Sr. Planned responsible
Details of activity d finish
No. Start date team
date
members
Discussion
and
1.
finalization
of topic
Preparation
and
2. submission
of project
proposal

Planning layout of
3.
micro project

4. Content preparation

Discussion
about
5.
required
resources

Correction and
6.
implementation

7. Seminar

Submission
of
8.
microprojec
t report

You might also like