diff options
Diffstat (limited to 'src/ee')
-rw-r--r-- | src/ee/digikey/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ee/digikey/__init__.py b/src/ee/digikey/__init__.py index 2fe7443..9815a8f 100644 --- a/src/ee/digikey/__init__.py +++ b/src/ee/digikey/__init__.py @@ -312,8 +312,7 @@ class DigikeyParser(object): p = DigikeyProduct(part_number, mpn, url, attributes, categories) p.price_breaks = self._parse_price_breaks(tree) p.documents = self._parse_documents(tree) - for n in tree.xpath("//*[@itemprop='description']"): - p.description = _to_string(n) + p.description = _to_string(_first(tree.xpath("//*[@id='product-overview']//*[@itemprop='description']"))) return p return None |