domaintrails.core.parser package

Submodules

domaintrails.core.parser.html_parser module

class domaintrails.core.parser.html_parser.DnsHistoryParser(html_content: str)

Bases: object

Custom parser written for extracting data from html.

parse() list

This functions invokes parsing of html content :return: historical records against website :rtype: object

Module contents

class domaintrails.core.parser.ColorPrint

Bases: object

This class provides support for color printing text in console.

static print_bold(message: str, end: str = '\n') None

Print text in bold format in console :param message: message which needs to be printed on console. :type message: str :param end: new line :type end: str :return: None :rtype: None

static print_fail(message: str, end: str = '\n') None

Print text in red color in console :param message: message which needs to be printed on console. :type message: str :param end: new line :type end: str :return: None :rtype: None

static print_info(message: str, end: str = '\n') None

Print text in green color in console :param message: message which needs to be printed on console. :type message: str :param end: new line :type end: str :return: None :rtype: None

static print_pass(message: str, end: str = '\n') None

Print text in green color in console :param message: message which needs to be printed on console. :type message: str :param end: new line :type end: str :return: None :rtype: None

static print_warn(message: str, end: str = '\n') None

Print text in warning color in console :param message: message which needs to be printed on console. :type message: str :param end: new line :type end: str :return: None :rtype: None

domaintrails.core.parser.domain_for_history(domain: str) str

This function prepares domain for domain history checking service. :param domain: takes input in any shape of urls e.g. http://www.example.com, https://www.example.com:8080 :type domain: str :return: simplified domain e.g. example.com :rtype: str

domaintrails.core.parser.domain_for_md(domain: str) str

This function prepares domain for domain availability checking service. :param domain: takes input in any shape of urls e.g. http://www.example.com, https://www.example.com:8080 :type domain: str :return: root of domain e.g. www.example.com :rtype: str