Archived
1
0

PEP-8 and fixed a bug in set_spider

This commit is contained in:
Jip J. Dekker 2014-04-22 19:03:29 +02:00
parent ba7bed0250
commit 595af7aa32

View File

@ -3,12 +3,12 @@ from scrapy import log
class Parser:
'''
website should be an regular expression of the urls of request the parser is able to parse.
'''
website = "http://something/*"
website = "http://something/*" # Regex of URI's the source is able to parse
_spider = None
def __init__(self):
pass
def parse(self, reponse):
log.msg("The parse function of the empty parser was used.", level=log.WARNING)
pass
@ -18,4 +18,4 @@ class Parser:
pass
def set_spider(self, spider):
self.__spider = spider
self._spider = spider