From 2e8dda654b86eb5b97696f36374047213ce6915a Mon Sep 17 00:00:00 2001 From: grey Date: Wed, 13 Mar 2024 10:21:30 +0800 Subject: [PATCH] fix --- spider/misc/wifi.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 spider/misc/wifi.py diff --git a/spider/misc/wifi.py b/spider/misc/wifi.py new file mode 100644 index 0000000..29e9e39 --- /dev/null +++ b/spider/misc/wifi.py @@ -0,0 +1,18 @@ +import pywifi +import time + + +def scan_wifi(): + wifi = pywifi.PyWiFi() + ifaces = wifi.interfaces()[0] + # ifaces.scan() + # time.sleep(1) + # results = ifaces.scan_results() + + # for i in results: + # # print(f"SSID:{i.ssid}, signal scrength:{i.akm}") + # print(f"SSID:{i.ssid}") + + +if __name__ == '__main__': + scan_wifi()