SHARE
TWEET

new

a guest Feb 16th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from wifi import Cell
  2.  
  3. cells = Cell.all('wlp2s0')
  4. cell_power = []
  5.  
  6. for cell in cells:
  7.     cell_power.append((cell.ssid, cell.signal))
  8.  
  9. cell_power.sort(key=lambda cell_signal:cell_signal[1], reverse=True)
  10.  
  11. print(cell_power)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top