diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-07 23:35:09 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-07 23:35:09 +0100 |
commit | 79b8525e776b27a1702a4eea6f3168bfd97a393a (patch) | |
tree | e81273e06d92f8b3ce980235e9f65b5b7e81228d /src/ee | |
parent | e0ec25e03d0584054b40ae63c27dbe4b06caa7bd (diff) | |
download | ee-python-79b8525e776b27a1702a4eea6f3168bfd97a393a.tar.gz ee-python-79b8525e776b27a1702a4eea6f3168bfd97a393a.tar.bz2 ee-python-79b8525e776b27a1702a4eea6f3168bfd97a393a.tar.xz ee-python-79b8525e776b27a1702a4eea6f3168bfd97a393a.zip |
o Updating digikey product parsing code. Using Selenium/WebDriver to
fetch data.
Diffstat (limited to 'src/ee')
-rw-r--r-- | src/ee/digikey/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |