From 4d1cdb9174d615dc555b4a86b2ac8b333232e03c Mon Sep 17 00:00:00 2001 From: danozgriff Date: Fri, 13 May 2016 09:33:39 +0800 Subject: [PATCH] Update scraper.py --- scraper.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scraper.py b/scraper.py index 2fd5753..72f819b 100644 --- a/scraper.py +++ b/scraper.py @@ -25,9 +25,9 @@ if headers==1: if cnt == 0: - DWT = tuple[2].strip(' ') #int + DWT = int(tuple[2].strip(' ')) elif cnt == 1: - AGENT = tuple[2].strip(' ') #int + AGENT = int(tuple[2].strip(' ')) elif cnt == 2: ETA = int(tuple[2].strip(' ')) elif cnt == 3: @@ -45,7 +45,8 @@ elif cnt == 9: POB = int(tuple[2].strip(' ')) elif cnt == 10: - TUGS = int(tuple[2].strip(' ')) + TUGS = int(tuple[2].strip(' ')) #int + print 'tugs' + TUGS elif cnt == 11: BPN_DPN = int(tuple[2].strip(' ')) elif cnt == 12: