Advertisement
here2share

# wifi_scanner.py

Oct 27th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. # wifi_scanner.py ZZZ missing signal strength
  2.  
  3. import subprocess
  4. results = subprocess.check_output(["netsh", "wlan", "show", "network"],shell=True)
  5.  
  6. results = results.decode("ascii")
  7. results = results.replace("\r","")
  8. ls = results.split("\n")
  9. ls = ls[4:]
  10. s = []
  11. x = 0
  12. while x < len(ls):
  13.     if x % 5 == 0:
  14.         s.append(ls[x])
  15.     x += 1
  16. for o in s:
  17.     print o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement