Installation

liburlparser requires Python 3.8 or higher.

Install from GitHub

pip install git+https://github.com/mohammadraziei/liburlparser

Manual Installation

git clone https://github.com/mohammadraziei/liburlparser
pip install ./liburlparser

Verifying Installation

After installation, you can verify that liburlparser is working correctly:

import liburlparser
print(liburlparser.__version__)

# Try parsing a URL
from liburlparser import Url
url = Url("https://example.com")
print(url.domain)  # Should output: example

Dependencies

liburlparser has minimal dependencies:

  • Python 3.8 or higher

The psl.update() feature uses Python’s built-in urllib module and has no additional runtime dependency.

Platform Support

liburlparser works on:

  • Windows

  • macOS

  • Linux

Troubleshooting

If you encounter any issues during installation:

  1. Make sure you have Python 3.8 or higher:

    python --version
    
  2. Ensure you have the latest pip:

    pip install --upgrade pip
    
  3. If you’re on Windows and encounter build issues, you may need to install Visual C++ build tools:

    pip install --upgrade setuptools wheel
    
  4. If you’re on Linux and encounter build issues, you may need to install development tools:

    # Ubuntu/Debian
    sudo apt-get install python3-dev build-essential
    
    # Fedora/RHEL/CentOS
    sudo dnf install python3-devel gcc
    

If you continue to experience issues, please open an issue on GitHub.