GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python/Sandbox/AIWS.py at master · LeoJr2015/python Expand file tree/ Copy pathAIWS.pyMore file actions 34 lines (24 loc) · 715 Bytes / Copy pathAIWS.pyFile metadata and controls34 lines (24 loc) · 715 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 import csv import sys #input = "RIU_CT_AIWS433.cmd" if len(sys.argv)==1: input = "RIU_CT_AIWS.cmd" else: input = sys.argv[1] list = [] in_file = open(input) reader = csv.reader(in_file,delimiter='"') for row in reader: if "AIWS " in row: file = row[1] #print file file_name = file[0:(file.find(';'))] file_rev = file[(file.find(';')+1):len(file)] #print "%s , %s" % (file_name,file_rev) list.append([file_name,file_rev]) output_file = input + ".csv" out_file = open(output_file,'wb') writer = csv.writer(out_file,delimiter=',') for row in list: writer.writerow([row[0],row[1]]) out_file.close() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |