Permalink
Browse files

Update scraper.py

  • Loading branch information...
danozgriff committed May 12, 2016
1 parent de40a23 commit ac89261736be3b30a4918a81bbea92337847d756
Showing with 7 additions and 7 deletions.
  1. +7 −7 scraper.py
View
@@ -22,20 +22,20 @@
cnt=0
obj = ''
row=''
delim=0
for tuple in tuples:
if cnt == 0:
obj = obj + '|A|' + tuple[2].strip(' ')
obj = obj + '|' + tuple[2].strip(' ')
elif cnt == 1:
obj = obj + '|B|' + tuple[2].strip(' ')
obj = obj + '||' + tuple[2].strip(' ')
else:
#sys.stdout.write(tuple[2])
obj = obj + '|C|' + tuple[2].strip(' ')
#print obj
obj = obj + '|||' + tuple[2].strip(' ')
cnt=-1
if obj[:5] == '|A|27':
if delim==0 and obj[:3] == '|27':
record = re.search(r'\|\|\|((.|\n)+)', obj).group(0)
print row
row = obj
obj = ''
else:

0 comments on commit ac89261

Please sign in to comment.