For this purpose we will use subprocess module which is available in (shipped with) python. First import the library. import subprocess Then lets scan for all available wireless networks (make sure you have enabled wifi in your pc/laptop) scan_results =