Ir para conteúdo
Fórum Script Brasil

mauricio oliveira

Membros
  • Total de itens

    7
  • Registro em

  • Última visita

Sobre mauricio oliveira

mauricio oliveira's Achievements

0

Reputação

  1. ele esta escrito em python 2 Este e meu código : import whois dominio = "dominio.com" consultaWhois = whois.whois(dominio) print consultaWhois.email print consultaWhois["email"] print consultaWhois.txt Este e o erro: Traceback (most recent call last): File "whois.py", line 1, in <module> import whois File "/home/kali/whois.py", line 3, in <module> consultaWhois = whois.whois(dominio) TypeError: 'module' object is not callable
  2. import socket dominio = "hackthissite.org" nmes = ["adim", "desafio", "dessasfio", "hacker"] for nome in nomes: DNS = nome + "." + dominio try: print DNS + ": " + socket.gethostbyname(DNS) except socket.gaierror: pass (ele retona esse erro File "dns_enum1.py", line 8 except socket.gaierror: ^ IndentationError: unindent does not match any outer indentation level como eu resolvo esse erro
  3. Boa tarde gente ! Eu gostaria de saber como baixo o pycharm no kali linux ?
  4. pode ser mais claro por farvor sou iniciante
  5. boa tarde pessoal ! meu código esta retornando erro se augem poder ajudar-me eu agradeço. CODIGO: import requests from bs4 import BeautifulSoup TO_CRAWL = ["http://g1.com"] CRAWLED = set() def get_links(html): links = [] try: soup = BeautifulSoup(html, "html.parser") tags_a = (soup.find_all("a")) for tag in tags_a: link = tag["href"] links.append(link) return link except: pass while 1: if TO_CRAWL: url = TO_CRAWL.pop() response = requests.get(url) html = response.text links = get_links(html) if links: for link in links: if link not in CRAWLED and link not in TO_CRAWL: TO_CRAWL.append(link) print("Crawling {}".format(url)) else: print("Done") break ERRO: File "C:\Users\mauu\PycharmProjects\hacker1\main.py", line 32 print("Crawling {}".format(url)) ^ IndentationError: unindent does not match any outer indentation level Se alguém puder me ajudar eu agradeço
×
×
  • Criar Novo...