[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.216.140: ~ $
from urllib.parse import urlparse, ParseResult


def parse(domain: str, scheme: str = 'http') -> str:
    """
    Convert domain name to 'http://www.domain.com' format
    """
    # https://stackoverflow.com/questions/21659044/how-can-i-prepend-http-to-a-url-if-it-doesnt-begin-with-http
    p = urlparse(domain, 'http')
    netloc = p.netloc or p.path
    path = p.path if p.netloc else ''
    p = ParseResult(p.scheme, netloc, path, *p[3:])
    return p.geturl()

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 270 B 0644
config.py File 5.75 KB 0644
const.py File 1.06 KB 0644
exceptions.py File 942 B 0644
notification.py File 9.96 KB 0644
report.py File 6.69 KB 0644
service.py File 807 B 0644
url_parser.py File 465 B 0644
utils.py File 6.71 KB 0644