# SPDX-FileCopyrightText: 2023 Aravinth Manivannan # # SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: MIT import sys from urllib.parse import urlparse, urlunparse, urlencode, parse_qsl from requests import Session def clean_url(url): parsed = urlparse(url) return urlunparse((parsed.scheme, parsed.netloc, "", "", "", "")) def set_path(url: str, path: str) -> str: parsed = urlparse(url) return urlunparse((parsed.scheme, parsed.netloc, path, "", "", "")) def help(): print("Usage: create_captcha.py