mauu Posted May 17, 2022 at 05:10 AM Report Share #625945 Posted May 17, 2022 at 05:10 AM estou criando uma consulta whois em python import whois dominio = "dominio.com" consultaWhois = whois.whois(dominio) print consultaWhois.email print consultaWhois["email"] print consultaWhois.txt podem me dizer como corrigir esse erro Link to comment Share on other sites More sharing options...
Rui Carlos Posted May 17, 2022 at 11:44 AM Report Share #625946 Posted May 17, 2022 at 11:44 AM Quais são os detalhes do erro (e.g. linha)? Aparentemente há vários módulos em Python com o mesmo nome (e.g. este e este). Qual deles estás a usar? Rui Carlos Gonçalves Link to comment Share on other sites More sharing options...
mauu Posted May 18, 2022 at 10:57 PM Author Report Share #625956 Posted May 18, 2022 at 10:57 PM Em 17/05/2022 às 08:44, Rui Carlos disse: Quais são os detalhes do erro (e.g. linha)? Aparentemente há vários módulos em Python com o mesmo nome (e.g. este e este). Qual deles estás a usar? raceback (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 Link to comment Share on other sites More sharing options...
Solution M6 Posted May 19, 2022 at 09:19 AM Solution Report Share #625960 Posted May 19, 2022 at 09:19 AM @mauupor acaso não tens um espaço na linha 1, mesmo antes do import? 1 Report 10 REM Generation 48K! 20 INPUT "URL:", A$ 30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50 40 PRINT "404 Not Found" 50 PRINT "./M6 @ Portugal a Programar." Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now