Skip to content

help with python script #24

@omersolo555

Description

@omersolo555

hi , how i solve the problem in line 4, i recieve an error (python):

`import subprocess

results = subprocess.check_output(["netsh", "wlan", "show", "network"])
results = results.replace("\r", "")

ls = results.split("\n")
ls = ls[4:]

ssids = [] #there we will store our ssids
x = 0
y = 0

while x < len(ls):
if x % 5 == 0:
ssids.append(ls[x])
x += 1

while y < len(ssids):
print (ssids[y])
y += 1
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions