5
如何自动从Digi-Key检索零件信息
在给定Digi-Key零件编号的情况下,如何自动检索制造商,制造商零件编号,描述等信息。也许解析GET http的目的是: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=DK_PART_NUMBER (感谢愤怒的人提供正确的参数) 其中DK_PART_NUMBER是Digikey零件号。 是否有人知道他们是否拥有Web服务或仅是更好的接口? 问了这个问题之后,我决定继续写一些可以从Digikey进行基本读取的东西: dk_pn = '587-1962-1-ND' from urllib import urlopen from sgmllib import SGMLParser headers = ['Digi-Key Part Number', 'Manufacturer', 'Manufacturer Part Number', 'Description', 'Lead Free Status / RoHS Status', 'Operating Temperature', 'Standard Package', 'Price Break', 'Unit Price', 'Extended Price'] class DK_Parser(SGMLParser): def reset(self): SGMLParser.reset(self) self.last_td …
15
components
bom