Skip to content

Commit

Permalink
Update searchproxyip.py
Browse files Browse the repository at this point in the history
  • Loading branch information
afosne committed Apr 20, 2024
1 parent 0734dfd commit 9e65d52
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions searchproxyip.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ def save_data(en_json,s):
pass
r = r + 1
book.save('%s.xls'%s)
cwd = os.getcwd()
dir = cwd + '\\' + 'targets.txt'
k = len(en_json['results'])
try:
with io.open(dir, 'w', encoding='utf-8') as f:
for i in range(0, k):
s = en_json['results'][i]
f.write(s+'\n')
except Exception as e:
print e
# cwd = os.getcwd()
# dir = cwd + '\\' + 'targets.txt'
# k = len(en_json['results'])
# try:
# with io.open(dir, 'w', encoding='utf-8') as f:
# for i in range(0, k):
# s = en_json['results'][i]
# f.write(s+'\n')
# except Exception as e:
# print e


if __name__ == '__main__':
Expand Down

0 comments on commit 9e65d52

Please sign in to comment.