A web scraper build to search specific information for a given compound (and its pseudonyms)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

NIST now logs an error if chemical name is not found

RTB afc11068 56ee6b1a

+5
+5
FourmiCrawler/sources/NIST.py
··· 20 20 def parse(self, response): 21 21 sel = Selector(response) 22 22 23 + title = sel.xpath('head/title/text()').extract()[0] 24 + if title == 'Name Not Found': 25 + log.msg('NIST: Chemical not found!', level=log.ERROR) 26 + return 27 + 23 28 requests = [] 24 29 25 30 requests.extend(self.parse_generic_info(sel))