MCPcopy Create free account

hub / github.com/1tayH/noisy / functions

Functions15 in github.com/1tayH/noisy

↓ 3 callersMethod_extract_urls
gathers links to be visited in the future from a web page's body. does it by finding "href" attributes in the DOM :param body
noisy.py:115
↓ 2 callersMethod_remove_and_blacklist
Removes a link from our current links list and blacklists it so we don't visit it in the future :param link: link to remove a
noisy.py:131
↓ 2 callersMethod_request
Sends a POST/GET requests using a random user agent :param url: the url to visit :return: the response Requests object
noisy.py:40
↓ 1 callersMethod_browse_from_links
Selects a random link out of the available link list and visits it. Blacklists any link that is not responsive or that contains no ot
noisy.py:140
↓ 1 callersMethod_is_blacklisted
Checks is a URL is blacklisted :param url: full URL :return: boolean indicating whether a URL is blacklisted or not
noisy.py:99
↓ 1 callersMethod_is_timeout_reached
Determines whether the specified timeout has reached, if no timeout is specified then return false :return: boolean indicatin
noisy.py:213
↓ 1 callersMethod_is_valid_url
Check if a url is a valid url. Used to filter out invalid values that were found in the "href" attribute, for example "javasc
noisy.py:82
↓ 1 callersMethod_normalize_link
Normalizes links extracted from the DOM by making them all absolute, so we can request them, for example, turns a "/images" link extr
noisy.py:54
↓ 1 callersMethodcrawl
Collects links from our root urls, stores them and then calls `_browse_from_links` to browse them
noisy.py:225
↓ 1 callersMethodload_config_file
Loads and decodes a JSON config file, sets the config of the crawler instance to the loaded one :param file_path: path of the
noisy.py:181
↓ 1 callersFunctionmain
()
noisy.py:253
↓ 1 callersMethodset_config
Sets the config of the crawler instance to the provided dict :param config: dict of configuration options, for example: {
noisy.py:192
↓ 1 callersMethodset_option
Sets a specific key in the config dict :param option: the option key in the config, for example: "max_depth" :param value: va
noisy.py:205
Method__init__
Initializes the Crawl class
noisy.py:26
Method_should_accept_url
filters url if it is blacklisted or not valid, we put filtering logic here :param url: full url to be checked :return: boolea
noisy.py:107