Mar-20-2018, 03:09 PM
Hi
I want to get various informations about one web site (how old he is etc...). I'm using PyCharm and the following code:
Got severeal errors:
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?