silly, initialize serial outside of loop
This commit is contained in:
parent
ac03ca17a8
commit
bb0f93d4c2
|
@ -30,9 +30,9 @@ def saveTrain(url, no, line):
|
|||
train.save()
|
||||
d = pq(url=url)
|
||||
table = d.find('table')[3]
|
||||
serial = 0
|
||||
for tr in table.iterfind('tr'):
|
||||
children = tr.getchildren()
|
||||
serial = 0
|
||||
if len(tr.findall('td')) > 0:
|
||||
td0 = children[0]
|
||||
a = td0.find('a')
|
||||
|
|
Loading…
Reference in New Issue
Block a user