Permalink
Browse files

Update scraper.py

  • Loading branch information...
danozgriff committed May 16, 2016
1 parent 0ffb77a commit bfb421c04f0f673619e9f599765e353e4906de52
Showing with 2 additions and 2 deletions.
  1. +2 −2 scraper.py
View
@@ -13,7 +13,7 @@
# Scan PDF
test1 = re.search(r'Duty Helo:((.|\n)+)TIDES', x).group(0)
print test1
#print test1
#test1 = re.search(r'Day\'s Volume(.*?)<br \/><\/div>', html).group()
tuples = re.findall(r'((left="|">)(.*?)(</text>|"))', test1.replace('<b>', '').replace('</b>', ''))
cnt=0
@@ -93,7 +93,7 @@
#HeadersList[hdcnt] = int(tuple[2].strip(' '))
HeadersList.append(int(tuple[2].strip(' '))+3)
print 'BPN_DPN: ' + tuple[2].strip(' ')
elif cnt == 32:
elif cnt == 34:
#REMARKS = int(tuple[2].strip(' '))
#HeadersList[hdcnt] = int(tuple[2].strip(' '))
HeadersList.append(round(int(tuple[2].strip(' '))*.87,0))

0 comments on commit bfb421c

Please sign in to comment.