Press "Enter" to skip to content

DigiKey Fetch Tool

Making a BOM (bill of material) for projects and keeping them up to date is really important. But also it is a tedious task that few people enjoy.

In effort to improve workflow when creating new components or updating existing ones, I have create a Python script that will fetch all important data for a component that you might want to use.

This tool has greatly reduced number of alt+tab / copy & paste juggling from my creating/maintaining BOM workflow, and I hope it does the same for you.

How does it work?

You run python script, enter DigiKey URL of the part you want to get data from.

Script will open the provided URL, parse data and fetch information such as Manufacturer, Manufacturer Part Number, DigiKey number and Description.

Shortly you will see fetched data with combination of hotkeys that you can use in ANY WINDOW to copy information to clipboard.

$ Fetch.py
Please enter DigiKey URL:
>> https://www.digikey.ca/product-detail/en/texas-instruments/TMDXEVM3358/296-29951-ND/2786080

Manufacturer: Texas Instruments
Manufacturer PN: TMDXEVM3358
DigiKey PN: 296-29951-ND
Description: EVAL MODULE FOR AM335X

---------------------------------------------

--- Use following shortcuts ---
--- (You can use them in any window) ---

ALT+1 - Copy Manufacturer
ALT+2 - Copy Manufacturer Part Number
ALT+3 - Copy Distributor
ALT+4 - Copy Distributor Part Number
ALT+5 - Copy Description
-----------------------------------
ALT+0 - Fetch new Part
-----------------------------------
CTRL+Q - Quit

What is nice about it that it has global hotkeys, so you can now switch to your favorite CAD and start using shortcuts to copy info to clipboard and then paste it into a desired field.

For easier access I recommend creating a shortcut to the Fetch.py script instead of running it from console every time, just in case you haven’t already thought of that.

Python Requirements

Script is written for Python 2.7 but should easily be ported to any other Python version.

I assume that you have Pip installed (instructions here) and for this script to work please install following modules:

pip install lxml
pip install clipboard
pip install requests
pip install pypiwin32

Room for improvement

This is a quick&dirty script that I needed and ended up creating in 15 min, therefore don’t expect it to be bullet proof.

Nevertheless it is a very nice and practical tool to have and I use it on daily basis.

I would love to hear how you use it, what do you like and what features would you like to see added next.

Source files

As always all source files are available and posted on GitHub.

If you would like to contribute, feel free to submit a pull-request with your modifications.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.