Navigation Menu

Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danozgriff committed May 13, 2016
1 parent 4836a84 commit 415e1b8
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions scraper.py
Expand Up @@ -37,34 +37,27 @@
elif cnt == 5:
VHF = int(tuple[2].strip(' '))
elif cnt == 6:
PILOT = (tuple[2].strip(' '))
print 'PILOT ' + PILOT
PILOT = int(tuple[2].strip(' '))
elif cnt == 7:
HARBOUR_PV = (tuple[2].strip(' '))
print 'HARBOUR_PV ' + HARBOUR_PV
HARBOUR_PV = int(tuple[2].strip(' '))
elif cnt == 9:
HC_OR_PV = tuple[2].strip(' ')
print 'HC_OR_PV ' + HC_OR_PV
HC_OR_PV = int(tuple[2].strip(' '))
elif cnt == 11:
POB = tuple[2].strip(' ')
print 'POB ' + POB
POB = int(tuple[2].strip(' '))
elif cnt == 12:
TUGS = tuple[2].strip(' ') #int
print 'TUGS ' + TUGS
TUGS = int(tuple[2].strip(' '))
elif cnt == 13:
BPN_DPN = int(tuple[2].strip(' '))
elif cnt == 15:
REMARKS = (tuple[2].strip(' '))
print 'REMARKS ' + REMARKS
REMARKS = int(tuple[2].strip(' '))
headers=0
cnt=-2
cnt=cnt+1
cnt=-1


if headers==0 and cnt >= 0:
if cnt == 0:
obj = tuple[2].strip(' ')
cnt=cnt+1
#cnt=cnt+1
elif cnt == 1:
#y=tuple[2].find(' ')+1
#obj = obj + '|||' + tuple[2][:y]
Expand All @@ -87,7 +80,10 @@
else:
row = row + obj
obj = ''



cnt=cnt+1

#sys.stdout.write('|')
#cnt=cnt+1
# sys.stdout.write(tuple[2])
Expand Down

0 comments on commit 415e1b8

Please sign in to comment.