From 79b8525e776b27a1702a4eea6f3168bfd97a393a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 7 Feb 2019 23:35:09 +0100 Subject: o Updating digikey product parsing code. Using Selenium/WebDriver to fetch data. --- src/ee/digikey/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ee/digikey') diff --git a/src/ee/digikey/__init__.py b/src/ee/digikey/__init__.py index dcd21b2..615d458 100644 --- a/src/ee/digikey/__init__.py +++ b/src/ee/digikey/__init__.py @@ -239,7 +239,7 @@ class DigikeyClient(object): for n in tree.xpath("//*[@itemprop='name' and @content]"): mpn = n.get("content") - for tr in tree.xpath("//table[@id='prod-att-table']/tr[not(@id='prod-att-title-row')]"): + for tr in tree.xpath("//table[@id='product-attribute-table']/*/tr[not(@id)]"): tds = tr.xpath("th|td") if len(tds) != 3: continue -- cgit v1.2.3