Commit 69b42731 authored by hackhard's avatar hackhard
Browse files

Spellcheck and pylint stuff

parent 60d733ac
Pipeline #9380 passed with stage
in 2 minutes and 24 seconds
......@@ -303,7 +303,7 @@ class Analyzer:
return True
return False
# pylint:disable=R0912,R0914,R0915
# pylint: disable=R0912,R0914,R0915
def dom_analyze(
self,
tor_html_data: str,
......@@ -366,8 +366,8 @@ class Analyzer:
if self.captcha_checker() is False:
if dom_score > 0:
if dom_score > self.max_threshold_value:
# Random value to check the performance.
# Might need some more experiments to come back with the correct value
# Random value to check the performance.
# Might need some more experiments to come back with the correct value
self.__logger.info("Tor most probably Errors!!")
self.dom_analyze_value = 0
# Call Consensus lite
......@@ -375,9 +375,9 @@ class Analyzer:
tor_node_count, non_tor_node_count, proxy_node_count
)
elif dom_score < self.min_threshold_value:
# Random value to check the performance.
# Might need some more experiments to come back with the correct value
# checks for keywords to help in this case
# Random value to check the performance.
# Might need some more experiments to come back with the correct value
# Checks for keywords to help in this case
self.__logger.info("Resembles same")
self.dom_analyze_value = 1
else:
......@@ -471,11 +471,10 @@ class Analyzer:
)
self.status_check_value = 2
else:
# pylint:disable=R1716
if (first_status_tor > 299 and first_status_tor < 400) or (
if (400 > first_status_tor > 299) or (
first_status_tor < 300 and first_status_non_tor < 300
):
# Chek if tor returns error pages or warning or captchas due to reload
# Check if tor returns error pages or warning or captchas due to reload
self.dom_analyze(
tor_html_data, non_tor_html_data, proxy_countries_html_data
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment