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 12, 2016
1 parent de40a23 commit ac89261
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scraper.py
Expand Up @@ -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:
Expand Down

0 comments on commit ac89261

Please sign in to comment.