-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: u'href' when scraping prices #90
Comments
Here I used |
Hi, it looks like the bug is in the TME code I have written, sorry for this. According to the log when being run with -s and -d flags, the problem is with the C0603C104M5RACTU part:
TME's HTML tree for this part contains a link without the href parameter specified (see the attached image). And my access to |
It looks like I should have used something like |
@adamheinrich , you are right. |
Prevent KeyError when accessing HTML tree (Issue #90)
OS:
Ubuntu 17.04
Steps I went through to install kicost:
Version installed:
KiCost 0.1.39
Error generated:
File I ran it on (using "kicost -i filename"):
LVBoard.xml.gz
File is gzipped because github wouldn't let me upload an xml
The text was updated successfully, but these errors were encountered: