Open ricofeanco opened 3 years ago
O Downdetector esta solicitando captcha pela Cloudflare
Olá, Parou de funcionar novamente?
Tentei instalar ontem pela primeira vez, e está dando esses erros:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request self._validate_conn(conn) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in _validate_conn conn.connect() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 366, in connect self.sock = ssl_wrapsocket( File "/usr/lib/python3/dist-packages/urllib3/util/ssl.py", line 370, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake() File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen retries = retries.increment( File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise raise value.with_traceback(tb) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request self._validate_conn(conn) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in _validate_conn conn.connect() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 366, in connect self.sock = ssl_wrapsocket( File "/usr/lib/python3/dist-packages/urllib3/util/ssl.py", line 370, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/usr/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake() File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./downdetector.py", line 94, in
Bom, por aqui verifiquei que o Downdetector sempre solicita capcha. Tentamos utilizar algum tipo de proxy, mudava o ip sempre, porém ainda assim solicitava capcha. Ao acessar através do navegador também há esse tipo de proteção. Há algum tipo de solução encontrada para burlarmos a Claudflare, até o momento?
Olá!
Conseguiram encontrar alguma solução?
[ZABBIX 6.0] Olá! Dentro do arquivo "downdetector.py" localize o seguinte trecho:
def request(dd_site): url = "https://downdetector.com.br/fora-do-ar/{}/".format(dd_site) if not craw: print(0) exit() elif craw == "cloudscraper": scraper = cloudscraper.create_scraper() return scraper.get(url) else: return requests.get(url, headers={'User-Agent': random.choice(user_agent_list)})
Remova o "s" do link, ficando "http://downdetector.com.br/fora-do-ar/{}/".format(dd_site)".
Assim as consultas funcionarão.
Prezado, o resultado de todas as consultas estão retornando sempre 0 "zero" = Não esta sendo possível verificar "nome do serviço" . Poderiramos verificar se ocorreram mudanças no site novamente ? Obrigado