mponton/MTQInfraScraper — Issue #2: parse_details error
Author: DrStrangeLove
Created: 2012-01-26 19:32:58+00:00
State: open

I'm sorry to bother you, but i stumbled upon the following problem executing your scraper (from mtqinfra.log file):

2012-01-26 23:03:58+0400 [mtqinfra] ERROR: Spider error processing
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 1178, in mainLoop
self.runUntilCurrent()
File "C:\Python27\lib\site-packages\twisted\internet\base.py", line 800, in runUntilCurrent
call.func(*call.args, **call.kw)
File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 362, in callback
self._startRunCallbacks(result)
File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 458, in _startRunCallbacks
self._runCallbacks()
--- ---
File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 545, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "C:\Python27\mponton-MTQInfraScraper-93d7b06\mtqinfra\spiders\mtqinfra_spider.py", line 160, in parse_details
latitude = float(latitude_text.replace(",", "."))
exceptions.ValueError: invalid literal for float(): 220.1 m

this error repeats constantly as log file grows incessantly. :(( At the same time export files (csv,json etc contain 0 bytes)

Is there a way to fix line 160??

Thanks in advance!