From 95e9675605deed13f3b2f53ffb47525fadcdbf17 Mon Sep 17 00:00:00 2001 From: Rob tB Date: Thu, 1 May 2014 14:57:09 +0200 Subject: [PATCH] created stub for NIST parser --- FourmiCrawler/sources/NIST.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 FourmiCrawler/sources/NIST.py diff --git a/FourmiCrawler/sources/NIST.py b/FourmiCrawler/sources/NIST.py new file mode 100644 index 0000000..57befff --- /dev/null +++ b/FourmiCrawler/sources/NIST.py @@ -0,0 +1,16 @@ +from scrapy import log +# from scrapy.http import Request + + +class NIST(Source): + website = "http://webbook.nist.gov/*" + + def __init__(self): + Source.__init__(self) + + def parse(self, reponse): + pass + + def new_compound_request(self, compound): + # return Request(url=self.website[:-1] + compound, callback=self.parse) + pass