Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whois not working
#1
Hi
I want to get various informations about one web site (how old he is etc...). I'm using PyCharm and the following code:
import whois
domain = whois.query('mariolopes.com')
The code is from the page https://pypi.python.org/pypi/whois/0.6.4
Got severeal errors:
Error:
C:\pycharm\venv\Scripts\python.exe C:/scrapSEO/teste.py Traceback (most recent call last): File "C:/scrapSEO/teste.py", line 2, in <module> w = whois.query('mariolopes.com') File "C:\pycharm\venv\lib\site-packages\whois\__init__.py", line 50, in query pd = do_parse(do_query(d, force, cache_file, slow_down, ignore_returncode), tld) File "C:\pycharm\venv\lib\site-packages\whois\_1_query.py", line 44, in do_query _do_whois_query(dl, ignore_returncode), File "C:\pycharm\venv\lib\site-packages\whois\_1_query.py", line 58, in _do_whois_query p = subprocess.Popen(['whois', '.'.join(dl)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) File "C:\Users\ASUS PC\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 709, in __init__ restore_signals, start_new_session) File "C:\Users\ASUS PC\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] O sistema não conseguiu localizar o ficheiro especificado Process finished with exit code 1
Any help, please?
Reply


Messages In This Thread
Whois not working - by mariolopes - Mar-20-2018, 03:09 PM
RE: Whois not working - by nilamo - Mar-20-2018, 04:10 PM
RE: Whois not working - by DeaD_EyE - Mar-20-2018, 05:00 PM
RE: Whois not working - by mariolopes - Mar-20-2018, 06:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python 3.13 : import whois HansieB 1 791 Nov-30-2024, 02:58 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020