From f2cacb79eb6d193dacbf95c03b83e8338840e819 Mon Sep 17 00:00:00 2001 From: RTB Date: Fri, 18 Apr 2014 15:03:06 +0200 Subject: [PATCH] properties from Predicted - ACD/Labs tab now include conditions from value variable --- FourmiCrawler/parsers/ChemSpider.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FourmiCrawler/parsers/ChemSpider.py b/FourmiCrawler/parsers/ChemSpider.py index 3c88728..83be265 100644 --- a/FourmiCrawler/parsers/ChemSpider.py +++ b/FourmiCrawler/parsers/ChemSpider.py @@ -47,6 +47,11 @@ class ChemSpider(Parser): prop_name = m.group(1) prop_conditions = m.group(2) + m = re.match(r'(.*) at (.*)', prop_value) + if m: + prop_value = m.group(1) + prop_conditions = m.group(2) + new_prop = Result({ 'attribute': prop_name, 'value': prop_value,