Disabled name mangling for the spider reference in the parsers
This commit is contained in:
parent
648b23e466
commit
ba7bed0250
@ -137,7 +137,7 @@ class ChemSpider(Parser):
|
|||||||
for syn in synonyms:
|
for syn in synonyms:
|
||||||
if syn['category'] == 'expert' and syn['language'] == 'English':
|
if syn['category'] == 'expert' and syn['language'] == 'English':
|
||||||
log.msg('CS emit synonym: %s' % syn['name'], level=log.DEBUG)
|
log.msg('CS emit synonym: %s' % syn['name'], level=log.DEBUG)
|
||||||
self._Parser__spider.get_synonym_requests(syn['name'])
|
self._spider.get_synonym_requests(syn['name'])
|
||||||
|
|
||||||
return requests
|
return requests
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ class Parser:
|
|||||||
website should be an regular expression of the urls of request the parser is able to parse.
|
website should be an regular expression of the urls of request the parser is able to parse.
|
||||||
'''
|
'''
|
||||||
website = "http://something/*"
|
website = "http://something/*"
|
||||||
__spider = None
|
_spider = None
|
||||||
|
|
||||||
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)
|
||||||
|
Reference in New Issue
Block a user