Author Topic: Search Enhancements for Digikey  (Read 7000 times)

0 Members and 1 Guest are viewing this topic.

Offline tjaegerTopic starter

  • Regular Contributor
  • *
  • Posts: 101
Search Enhancements for Digikey
« on: February 08, 2014, 04:13:43 am »
I've finally had enough of going through list boxes on digikey trying to select items that satisfy some simple criteria, so I spent I couple of hours automating the process.  I'm posting it here in case anybody else finds it useful.

https://github.com/thjaeger/filter-parts

Two examples:  1. If you're looking for MCUs that have a usb peripheral just type in "usb" into the search box and the bookmarklet will select the corresponding items. 2. If you're looking for a switching regulator that can convert down 12 V to 2 V, you can type in "12 V" and "2 V" in the corresponding search boxes.

The thing could use a little polishing and might not understand everything digikey throws at it (like ±), but it works well enough for me right now.
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2540
  • Country: us
  • Not An Expert
Re: Search Enhancements for Digikey
« Reply #1 on: February 08, 2014, 04:35:24 am »
That is actually a really killer feature.  I'm totally going to use that.  Thanks!

Not that I'm in any position to make requests, but another missing digikey feature is searching based on a subset of the parameters of some already known item.  Like say you have a part number for a connector with a 0.3in pin spacing, single row, and 4 position.... and you want to find another alternate compatible part with those same parameters.  That should be like 4 clicks and done instead of manually selecting all those things from the drop down window in another browser tab.

 
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21609
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Search Enhancements for Digikey
« Reply #2 on: February 08, 2014, 06:33:47 am »
That is actually a really killer feature.  I'm totally going to use that.  Thanks!

Not that I'm in any position to make requests, but another missing digikey feature is searching based on a subset of the parameters of some already known item.  Like say you have a part number for a connector with a 0.3in pin spacing, single row, and 4 position.... and you want to find another alternate compatible part with those same parameters.  That should be like 4 clicks and done instead of manually selecting all those things from the drop down window in another browser tab.

Like Mouser's "search similar" feature?

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline peter.mitchell

  • Super Contributor
  • ***
  • Posts: 1567
  • Country: au
Re: Search Enhancements for Digikey
« Reply #3 on: February 08, 2014, 07:02:42 am »
I usually type these types of things in the search bar, BUT, this suffers the same problem as that; if you type 50v, you get results for 50v, 150v, 250v, 1050v ect
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Search Enhancements for Digikey
« Reply #4 on: February 08, 2014, 07:32:49 am »
I hate those Digikey list boxes.  I really like your text boxes you can type in and select items from the list boxes ..
way cool, and definitely needed.   It didn't work for me until I removed the greasemonkey script I already use on Digikey.

I don't intend to hijack your thread here, but have you seen it ? it's from Ben Hest, and I think he's on the board here.  It's fantastic, and I am a happy user, I just wanted to spread the joy !

https://dl.dropboxusercontent.com/u/26263360/advancedsearch.user.js

His script really enhances the Digikey site with an interactive selection, pop-outs, hover-cart, compare slider, can also hover over those same list boxes we all hate, and it pops out all the matches(!) it's like google live on Digikey :)  way cool.. but I think the elements are renamed because your script didn't inject anything.. so your script probably couldn't find your way around inside his page modifications :)

anyways.... have a look.  Maybe you will like it too, and you can get your input boxes under the lists on his script.

I've attached some images..  You can click the image (twice) for full screen.
Cheers!

This is the hover over the shopping cart..


Hide columns with a click:


That little area is things that match your current selection before apply.. you can hover over anything for more information.


This is the hover over a list item, without clicking or selecting it. Shows the matches.

 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: Search Enhancements for Digikey
« Reply #5 on: February 08, 2014, 07:34:09 am »
That looks interesting, thanks for sharing!  :-+ I'll give that a spin during the next round of ordering. Minus the remote javascript bookmark obviously. ;)
 

Offline tjaegerTopic starter

  • Regular Contributor
  • *
  • Posts: 101
Re: Search Enhancements for Digikey
« Reply #6 on: February 08, 2014, 08:49:05 pm »
I don't intend to hijack your thread here, but have you seen it ? it's from Ben Hest, and I think he's on the board here.  It's fantastic, and I am a happy user, I just wanted to spread the joy !

https://dl.dropboxusercontent.com/u/26263360/advancedsearch.user.js
Thanks, I had no idea something like this existed, it is obviously much more sophisticated than my little bookmarklet.  The project could definitely use some advertising :)  I'm honestly a little surprised greasemonkey is still around, I haven't seen anybody use it in years.

Quote
anyways.... have a look.  Maybe you will like it too, and you can get your input boxes under the lists on his script.
This is strange, the script just injects text boxes below any multiple-selection list box.  So it works on mouser too, for example, it's not very useful because their database can't handle too many selected items.
I had no problems using it in combination with the advancedusersearch script, but I did make a minor adjustment to help with formatting (still not perfect, though).
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Search Enhancements for Digikey
« Reply #7 on: February 09, 2014, 02:37:12 am »
This is strange, the script just injects text boxes below any multiple-selection list box.  So it works on mouser too, for example, it's not very useful because their database can't handle too many selected items.
I had no problems using it in combination with the advancedusersearch script, but I did make a minor adjustment to help with formatting (still not perfect, though).
hmm.. I could not get it to inject your input boxes unless I disabled greasemonkey.. so perhaps I have another interaction somewhere else with another script.  I'll look more. 

The changes you made to help with formatting, was that in your code or the advancedusersearch script?

I am greedy :) I still want to use both scripts   :-+
 

Offline peter.mitchell

  • Super Contributor
  • ***
  • Posts: 1567
  • Country: au
Re: Search Enhancements for Digikey
« Reply #8 on: February 09, 2014, 07:51:27 am »
I only have one issue with Digi-Key. You cannot update quantities directly from the cart page, or remove items from cart.
The script referenced by codeboy on behalf of Ben Hest fixes that problem.
Thank you greatly.
This is the hover over the shopping cart..

 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Search Enhancements for Digikey
« Reply #9 on: February 09, 2014, 01:34:52 pm »
I only have one issue with Digi-Key. You cannot update quantities directly from the cart page, or remove items from cart.
The script referenced by codeboy on behalf of Ben Hest fixes that problem.
Thank you greatly.

Yeah, I use that all the time :) The script is quite extensive and represents many man-hours of Ben's work.  He's still updating it, the last update was fairly recent.  He has posted on the board in the past, I just don't remember his username here.

So, thank you Ben Hest! hope you're reading :)
 
 

Offline tjaegerTopic starter

  • Regular Contributor
  • *
  • Posts: 101
Re: Search Enhancements for Digikey
« Reply #10 on: February 09, 2014, 06:32:17 pm »
hmm.. I could not get it to inject your input boxes unless I disabled greasemonkey.. so perhaps I have another interaction somewhere else with another script.  I'll look more. 

The changes you made to help with formatting, was that in your code or the advancedusersearch script?

I am greedy :) I still want to use both scripts   :-+

The changes were in my code (and I pushed them to github right away).  They shouldn't affect though whether or not the list boxes show up.  Are you using the latest version of the advancedusersearch script?  Are there any errors in the javascript console after you click on the bookmarklet?
 

Offline bombledmonk

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: Search Enhancements for Digikey
« Reply #11 on: July 25, 2014, 03:40:46 pm »
I only have one issue with Digi-Key. You cannot update quantities directly from the cart page, or remove items from cart.
The script referenced by codeboy on behalf of Ben Hest fixes that problem.
Thank you greatly.
Digging up the dead here,  but the official Digi-Key site did add in cart editing.

I missed this topic originally, but I'm the advancedsearch author and still fixing issues when people alert me.  I'm also still tweaking, adding new features and always taking suggestions.

Offline SirNick

  • Frequent Contributor
  • **
  • Posts: 589
Re: Search Enhancements for Digikey
« Reply #12 on: July 25, 2014, 07:59:34 pm »
Wow, that's fancy stuff.  Digikey should be talking to these guys to integrate some of this into the main site!

I just wish the product page had a link back to the sub-category search.  E.g., you're looking at an item from the ceramic cap search, want to look up some alternatives, but the breadcrumb only lets you go back to "Capacitors", not "Capacitors -> Ceramic".
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2540
  • Country: us
  • Not An Expert
Re: Search Enhancements for Digikey
« Reply #13 on: July 26, 2014, 01:52:05 am »
Wow, that's fancy stuff.  Digikey should be talking to these guys to integrate some of this into the main site!

I just wish the product page had a link back to the sub-category search.  E.g., you're looking at an item from the ceramic cap search, want to look up some alternatives, but the breadcrumb only lets you go back to "Capacitors", not "Capacitors -> Ceramic".

Ok.  That's two requests now.  I think that makes an official feature request ticket!
 

Offline Artlav

  • Frequent Contributor
  • **
  • Posts: 750
  • Country: mon
    • Orbital Designs
Re: Search Enhancements for Digikey
« Reply #14 on: July 26, 2014, 09:16:39 am »
The scripts sound like something really useful, but...
How do you use them?
Neither the "bookmark this link", nor opening the dropbox one does anything.
What have i missed?
 

Offline bombledmonk

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: Search Enhancements for Digikey
« Reply #15 on: July 27, 2014, 12:13:02 am »
Have you installed Greasemonkey?


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf