Archived
1
0
This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.

22 lines
521 B
Python

from scrapy import log
from scrapy.http import Request
class Parser:
'''
website should be an regular expression of the urls of request the parser is able to parse.
'''
website = "http://something/*"
__spider = None
def parse(self, reponse):
log.msg("The parse function of the empty parser was used.", level=log.WARNING)
pass
def new_compound_request(self, compound):
# return Request(url=self.website[:-1] + compound, callable=self.parse)
pass
def set_spider(self, spider):
self.__spider = spider