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.
You need to have Python 3 installed on your machine. This project relies on the standard library, specifically socket, ssl, and tkinter.
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
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
- 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.