PEP-8 and fixed a bug in set_spider
This commit is contained in:
parent
ba7bed0250
commit
595af7aa32
@ -3,12 +3,12 @@ from scrapy import log
|
|||||||
|
|
||||||
|
|
||||||
class Parser:
|
class Parser:
|
||||||
'''
|
website = "http://something/*" # Regex of URI's the source is able to parse
|
||||||
website should be an regular expression of the urls of request the parser is able to parse.
|
|
||||||
'''
|
|
||||||
website = "http://something/*"
|
|
||||||
_spider = None
|
_spider = None
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def parse(self, reponse):
|
def parse(self, reponse):
|
||||||
log.msg("The parse function of the empty parser was used.", level=log.WARNING)
|
log.msg("The parse function of the empty parser was used.", level=log.WARNING)
|
||||||
pass
|
pass
|
||||||
@ -18,4 +18,4 @@ class Parser:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def set_spider(self, spider):
|
def set_spider(self, spider):
|
||||||
self.__spider = spider
|
self._spider = spider
|
||||||
|
Reference in New Issue
Block a user