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.
Fourmi/FourmiCrawler/spider.py

17 lines
414 B
Python

from scrapy.spider import Spider
class FourmiSpider(Spider):
name = "FourmiSpider"
def __init__(self, compound=None, *args, **kwargs):
super(FourmiSpider, self).__init__(*args, **kwargs)
def parse(self, reponse):
# [TODO] - This function should delegate it's functionality to other
# parsers.
pass
def add_parser(self, parser):
self.parsers.add(parser)