a program that scan network show theyre ssid that is for python
that code is this
from wifi import Cell, Scheme
Cell.all('wlan0')
cell = Cell.all('wlan0')[0]
scheme = Scheme.for_cell('wlan0', 'home', cell, passkey)
scheme.save()
scheme.activate()
scheme = Scheme.find('wlan0', 'home')
scheme.activate()
error:
Traceback (most recent call last):
File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\ex1.py", line 2, in <module>
Cell.all('wlan0')
File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\site-packages\wifi\scan.py", line 39, in all
stderr=subprocess.STDOUT)
File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 376, in check_output
**kwargs).stdout
File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 453, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "C:\Users\DashAmir\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
maybe this is incorrect some code like this can show network ssids like wifi