I'm running a very simple demo based on example in Readme:
import digikey
import sys
import logging
from digikey.v3.productinformation import KeywordSearchRequest
digikey.logger.setLevel(logging.CRITICAL)
query=sys.argv[1]
print(f'searching for \'{query}\'')
search_request = KeywordSearchRequest(keywords=query, record_count=10)
result = digikey.keyword_search(body=search_request)
for res in result.products:
print(res.product_description)
However, the only thing it prints no matter what I type is:
CAP ALUM 1000UF 20% 35V RADIAL
Enabling debug shows that it tries for the correct query:
Hi!
I'm running a very simple demo based on example in Readme:
However, the only thing it prints no matter what I type is:
Enabling debug shows that it tries for the correct query:
Thanks in advance!