Skip to content

ashton2330/beginner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

beginner

url parsing

📌 URL Parsing Tool (Python)

Description

This project is a simple URL Parsing Tool built using Python. It takes a URL as input from the user and manually extracts important components such as the protocol, domain name, and page/path using string operations. The project helps in understanding how URLs are structured and how Python string methods like slicing and find() can be used for real-world problems.


Features

  • Takes a URL as user input

  • Extracts:

    • Protocol (e.g., https)
    • Domain name (e.g., google)
    • Page / path (e.g., /search?q=python)
  • Uses manual string parsing (no external libraries)

  • Beginner-friendly and easy to understand


Technologies Used

  • Python
  • String methods (find(), slicing)

How to Run

  1. Make sure Python is installed on your system

  2. Clone this repository or download the file

  3. Run the program:

    python url_parser.py
  4. Enter a valid URL when prompted


Sample Input

https://www.google.com/search?q=python

Sample Output

protocol: https
domain: google
page: /search?q=python

Note

This project uses manual URL parsing for learning purposes It works best with URLs containing www and a page/path Advanced parsing can be done using Python’s urllib.parse module

Author

Neesa Syed

About

url parsing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%