Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def outputToFile(_list, filename):
- with open(filename, 'w') as f:
- for item in _list:
- f.write("%s\n" % item)
- def checkfile(file):
- https = []
- with open(file, "r") as fileObj:
- for line in fileObj.readlines():
- clean_line = line.strip()
- fileObj.close()
- http = "https://" + clean_line
- print(http)
- https.append(http)
- return https
- output = checkfile(sys.argv[1])
- outputToFile(output, "https.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement