Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
a program that scan wifi and see the names in python

What I have tried:

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()

bit it didnt work
Posted
Updated 11-Sep-18 23:59pm
v2
Comments
OriginalGriff 12-Sep-18 4:51am    
"it didn't work" is one of the error reports we get quite often, and it's always completely useless - it tells us nothing about your problem other than "I have a problem" and we knew that because you are asking a question!

What did it do that you didn't expect, or not do that you did?
When did it do it?
Are there any error messages?
What did you do to make it do that?
What have you tried to do to find out why?
What were the results?
What help do you need?

These are all questions we need an answer to - or we can't help you at all!

1 solution

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
 
Share this answer
 
Comments
Richard MacCutchan 12-Sep-18 7:14am    
FileNotFoundError: [WinError 2] The system cannot find the file specified
Check the name of your wifi interface is correct.
Richard Deeming 13-Sep-18 15:43pm    
If you want to reply to a comment, click the "Reply" button next to the comment.

If you want to update your question to add missing information, click the green "Improve question" link, and edit your question.

DO NOT post your update/reply in the "Add your solution here" box!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900