Skip to content

DragonSenseiGuy/python-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Browser Project

This is a simple web browser implementation in Python using Tkinter. It demonstrates the basic principles of how a browser fetches a webpage, parses the HTML, and renders text to the screen.

Prerequisites

You need to have Python 3 installed on your machine. This project relies on the standard library, specifically socket, ssl, and tkinter.

Installation

  1. Clone this repository to your local machine.
  2. Navigate to the project directory in your terminal.

Running the Browser

To run the browser, execute the browser.py script from the terminal. You can optionally provide a URL as an argument.

If you run it without arguments, it will default to http://example.com:

python browser.py

To visit a specific website, pass the URL as the first argument:

python browser.py http://example.com

Features

  • Fetches web pages via HTTP and HTTPS.
  • Parses HTML tags.
  • Renders text content to a window.
  • Hides content inside script and style tags.
  • Supports basic scrolling with the mouse wheel and arrow keys.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages