Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # wifi_scanner.py ZZZ missing signal strength
- import subprocess
- results = subprocess.check_output(["netsh", "wlan", "show", "network"],shell=True)
- results = results.decode("ascii")
- results = results.replace("\r","")
- ls = results.split("\n")
- ls = ls[4:]
- s = []
- x = 0
- while x < len(ls):
- if x % 5 == 0:
- s.append(ls[x])
- x += 1
- for o in s:
- print o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement