From 238627537deafd51f41c929747c041d193e66ab9 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 2 Aug 2018 23:34:45 +0200 Subject: o Handling digikey pages with a special "exact match" header + list of other categories to continue to search in. The header is just enough data for us. o Better digikey tests, saving local HTML instead of doing online requests. --- src/ee/digikey/__init__.py | 46 +- test/digikey/static-copies/search-S1MTR.html | 1134 +++++ test/digikey/static-copies/search-TCR2LF.html | 5318 ++++++++++++++++++++ .../static-copies/search-TCR2LF10LM(CTTR-ND.html | 1830 +++++++ .../static-copies/search-TCR2LF12LM(CTTR-ND.html | 1872 +++++++ .../static-copies/search-TCR2LF15LM(CT-ND.html | 1712 +++++++ .../static-copies/search-TCR2LF18LM(CTTR-ND.html | 1887 +++++++ .../static-copies/search-TCR2LF25LM(CTTR-ND.html | 1970 ++++++++ .../static-copies/search-TCR2LF27LM(CTTR-ND.html | 1840 +++++++ .../static-copies/search-TCR2LF30LM(CTTR-ND.html | 1896 +++++++ .../static-copies/search-TCR2LF32LM(CTTR-ND.html | 1830 +++++++ .../static-copies/search-TCR2LF33LM(CTTR-ND.html | 1951 +++++++ .../static-copies/search-TCR2LF36LM(CTTR-ND.html | 1839 +++++++ test/test_digikey.py | 70 +- 14 files changed, 25164 insertions(+), 31 deletions(-) create mode 100644 test/digikey/static-copies/search-S1MTR.html create mode 100644 test/digikey/static-copies/search-TCR2LF.html create mode 100644 test/digikey/static-copies/search-TCR2LF10LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF12LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF15LM(CT-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF18LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF25LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF27LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF30LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF32LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF33LM(CTTR-ND.html create mode 100644 test/digikey/static-copies/search-TCR2LF36LM(CTTR-ND.html diff --git a/src/ee/digikey/__init__.py b/src/ee/digikey/__init__.py index 6fa3161..f230f00 100644 --- a/src/ee/digikey/__init__.py +++ b/src/ee/digikey/__init__.py @@ -213,16 +213,11 @@ class DigikeyClient(object): def __nop(self, message): pass - def __init__(self, digikey: Digikey, on_download=None): + def __init__(self, digikey: Digikey, cache_dir=None, on_download=None): self.digikey = digikey self.on_download = on_download or self.__nop - cache = FileCache('digikey_cache', forever=True) - self.sess = CacheControl(requests.Session(), cache=cache, heuristic=ExpiresAfter(days=1)) - - # adapter = CacheControlAdapter(cache=cache, heuristic=ExpiresAfter(days=1)) - # self.sess = requests.Session() - # self.sess.mount('http://', adapter) - # self.sess.mount('https://', adapter) + cache = FileCache(cache_dir or 'http_cache', forever=True) + self.sess = CacheControl(requests.Session(), cache=cache, heuristic=ExpiresAfter(days=10*365)) def _req(self, url, params=None): if not url.startswith("http"): @@ -274,8 +269,8 @@ class DigikeyClient(object): return None - # noinspection PyMethodMayBeStatic - def _search_process_multiple_results(self, tree: html, res: DigikeySearchResponse): + @staticmethod + def _handle_product_table(tree: html, res: DigikeySearchResponse): products = tree.xpath("//*[@itemtype='http://schema.org/Product']") for product in products: @@ -290,24 +285,43 @@ class DigikeyClient(object): return len(products) + @staticmethod + def _handle_exact_part_list(tree: html, res: DigikeySearchResponse): + products = tree.xpath(".//tr[@class='exactPart']") + + for product in products: + a = _first((a for a in product.xpath(".//td/span/a[@href]"))) + part_number = _first(product.xpath(".//span[last()]")) + + if a is not None and part_number is not None: + url = a.get("href") + mpn = a.text + res.append(DigikeyProduct(part_number.text, mpn, url)) + + return len(products) + def search(self, query: str, page_size=10) -> DigikeySearchResponse: - # http://www.digikey.com/products/en?x=0&y=0&lang=en&site=us&keywords=553-2320-1-ND - # params = {'lang': 'en', 'site': 'us', 'keywords': query, 'pageSize': str(page_size), 'x': 0, 'y': 0} params = {'lang': 'en', 'site': 'us', 'keywords': query, 'pageSize': str(page_size)} page = self._req("https://www.digikey.com/products/en", params=params) - # print("page: ") - # print(page.content) - tree = html.fromstring(page.content) + return self.parse_string(page.content) + + def parse_string(self, page_content: str): + tree = html.fromstring(page_content) count = _first([_parse_int(e.text) for e in tree.xpath("//span[@id='matching-records-count']") if e.text]) if count: product_table = _first(tree.xpath("//table[@id='productTable']")) + exact_part_list = _first(tree.xpath("//table[@id='exactPartList']")) if product_table is not None: res = DigikeySearchResponse(count, SearchResponseTypes.MANY) - self._search_process_multiple_results(product_table, res) + self._handle_product_table(product_table, res) + return res + elif exact_part_list is not None: + res = DigikeySearchResponse(count, SearchResponseTypes.MANY) + self._handle_exact_part_list(exact_part_list, res) return res else: # If the search matches multiple product categories the user has to select the appropriate category diff --git a/test/digikey/static-copies/search-S1MTR.html b/test/digikey/static-copies/search-S1MTR.html new file mode 100644 index 0000000..5a54eb7 --- /dev/null +++ b/test/digikey/static-copies/search-S1MTR.html @@ -0,0 +1,1134 @@ + + + + + + + + + + + + + + Electronic Components and Parts Search | DigiKey Electronics + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + + + +
+ + +

+Results: 16      
+
+
+
+ + + + +
+ + +
+ +
+
+
+
+
+
    +
  • Stock Status
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
    +
  • Media Available
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
    +
  • Environmental
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
+
+ + + +
+
+ +
+
+
+ + + S1MTR + +
+
+

+ Electronic Components +

+ +
+

+ Top Results for: + S1MTR +

+
+ + + + + +
+ + S1MTR - SMC Diode Solutions + + + + S1MTR +
+ SMC Diode Solutions
+ DIODE GEN PURP 1KV 1A SMA
+ Unit Price +0.14000
+ 1655-1506-1-ND
+
+
+
+ + +

16:32:11 8/2/2018

+
+ + + +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF.html b/test/digikey/static-copies/search-TCR2LF.html new file mode 100644 index 0000000..eac50ac --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF.html @@ -0,0 +1,5318 @@ + + + + + PMIC - Voltage Regulators - Linear | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + +
+ +

+ Product Index > Integrated Circuits (ICs) > PMIC - Voltage Regulators - Linear +

+ + +
+ Results: 28       + 28 Remaining +
+
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + +
PackagingVoltage - Output (Min/Fixed)Voltage Dropout (Max)
+ + + + + +
+ Clear + + Clear + + Clear +
+
+ + + + + + + +
+
+
    +
  • Stock Status
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
    +
  • Media Available
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
    +
  • Environmental
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
+
+ + + + + +
+ + +    + 28 Remaining +
+
+
+
+
+ + + + + + + + + + + TCR2LF + +
+ + + + + + + + + + + TCR2LF + +
+
+
+ + + + + + + + + + + + +
+
+
+ Results per Page + +
+
+ Page 1/1 +
+
+
+
+ + + + + +? + + + + + + +
+
+
+
+ + + + + + + + + + + + +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Compare Parts + Datasheets + ImageDigi-Key Part NumberManufacturer Part NumberManufacturerDescription + Quantity Available +
+ ? +
+ Unit Price +
+ USD +
+ ? +
+ Minimum Quantity +
+ ? +
PackagingSeriesPart StatusOutput ConfigurationOutput TypeNumber of RegulatorsVoltage - Input (Max)Voltage - Output (Min/Fixed)Voltage - Output (Max)Voltage Dropout (Max)Current - OutputCurrent - Quiescent (Iq)Current - Supply (Max)PSRRControl FeaturesProtection FeaturesOperating TemperatureMounting TypePackage / CaseSupplier Device Package
+ +    +
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+ + + + TCR2LF18,LM(CT Datasheet + + + + TCR2LF18,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF18LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1.8V 200MA SMV + + 9,000 - Immediate
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1.8V + +
-
+ +
+ 0.62V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF18,LM(CT Datasheet + + + + TCR2LF18,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF18LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1.8V 200MA SMV + + 11,337 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1.8V + +
-
+ +
+ 0.62V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF18,LM(CT Datasheet + + + + TCR2LF18,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF18LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1.8V 200MA SMV + + 11,337 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1.8V + +
-
+ +
+ 0.62V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF33,LM(CT Datasheet + + + + TCR2LF33,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF33LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.3V 200MA SMV + + 3,000 - Immediate
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.3V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF33,LM(CT Datasheet + + + + TCR2LF33,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF33LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.3V 200MA SMV + + 4,902 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.3V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF33,LM(CT Datasheet + + + + TCR2LF33,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF33LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.3V 200MA SMV + + 4,902 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.3V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF10,LM(CT Datasheet + + + + TCR2LF10,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF10LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1V 200MA SMV + + 3,000 - Immediate
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1V + +
-
+ +
+ 1.4V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF10,LM(CT Datasheet + + + + TCR2LF10,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF10LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1V 200MA SMV + + 5,720 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1V + +
-
+ +
+ 1.4V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF10,LM(CT Datasheet + + + + TCR2LF10,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF10LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1V 200MA SMV + + 5,720 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1V + +
-
+ +
+ 1.4V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF32,LM(CT Datasheet + + + + TCR2LF32,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF32LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.2V 200MA SMV + + 3,000 - Immediate
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.2V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF32,LM(CT Datasheet + + + + TCR2LF32,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF32LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.2V 200MA SMV + + 3,341 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.2V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF32,LM(CT Datasheet + + + + TCR2LF32,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF32LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.2V 200MA SMV + + 3,341 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.2V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF27,LM(CT Datasheet + + + + TCR2LF27,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF27LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 2.7V 200MA SMV + + 3,000 - Immediate
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 2.7V + +
-
+ +
+ 0.38V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF27,LM(CT Datasheet + + + + TCR2LF27,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF27LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 2.7V 200MA SMV + + 3,978 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 2.7V + +
-
+ +
+ 0.38V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF27,LM(CT Datasheet + + + + TCR2LF27,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF27LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 2.7V 200MA SMV + + 3,978 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 2.7V + +
-
+ +
+ 0.38V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF12,LM(CT Datasheet + + + + TCR2LF12,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF12LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1.2V 200MA SMV + + 0
+ Standard Lead Time 12 Weeks
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1.2V + +
-
+ +
+ 1.25V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF12,LM(CT Datasheet + + + + TCR2LF12,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF12LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1.2V 200MA SMV + + 2,558 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1.2V + +
-
+ +
+ 1.25V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF12,LM(CT Datasheet + + + + TCR2LF12,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF12LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1.2V 200MA SMV + + 2,558 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1.2V + +
-
+ +
+ 1.25V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF25,LM(CT Datasheet + + + + TCR2LF25,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF25LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 2.5V 200MA SMV + + 0
+ Standard Lead Time 12 Weeks
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 2.5V + +
-
+ +
+ 0.38V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF25,LM(CT Datasheet + + + + TCR2LF25,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF25LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 2.5V 200MA SMV + + 2,455 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 2.5V + +
-
+ +
+ 0.38V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF25,LM(CT Datasheet + + + + TCR2LF25,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF25LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 2.5V 200MA SMV + + 2,455 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 2.5V + +
-
+ +
+ 0.38V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF30,LM(CT Datasheet + + + + TCR2LF30,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF30LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3V 200MA SMV + + 0
+ Standard Lead Time 10 Weeks
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF30,LM(CT Datasheet + + + + TCR2LF30,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF30LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3V 200MA SMV + + 2,247 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF30,LM(CT Datasheet + + + + TCR2LF30,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF30LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3V 200MA SMV + + 2,247 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF36,LM(CT Datasheet + + + + TCR2LF36,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF36LM(CTTR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.6V 200MA SMV + + 0
+ Standard Lead Time 12 Weeks
+ +
+ $0.07000 + + 3,000 + + +Tape & Reel (TR)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.6V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF36,LM(CT Datasheet + + + + TCR2LF36,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF36LM(CTCT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.6V 200MA SMV + + 1,310 - Immediate
+ +
+ $0.45000 + + 1 + + +Cut Tape (CT)?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.6V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF36,LM(CT Datasheet + + + + TCR2LF36,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF36LM(CTDKR-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 3.6V 200MA SMV + + 1,310 - Immediate
+ +
+ Digi-Reel® + + + 1 + + +Digi-Reel®?
+Alternate Packaging
+
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 3.6V + +
-
+ +
+ 0.3V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+ + + + TCR2LF15,LM(CT Datasheet + + + + TCR2LF15,LM(CT - Toshiba Semiconductor and Storage + + + + + TCR2LF15LM(CT-ND + +
+
+ + This part is RoHS compliant. + + + +
+ +
+ + + + + + + + IC REG LINEAR 1.5V 200MA SMV + + 0
+ +
+ $0.07200 + + 3,000
Non-Stock
? +
+ +Cut Tape (CT)? +
-
+ +
+ + Active + + + + Positive + + Fixed + + 1 + + 5.5V + + 1.5V + +
-
+ +
+ 1.13V @ 150mA + + 200mA + + 2µA + +
-
+
+
-
+ +
+ Enable + + Over Current + + -40°C ~ 85°C (TJ) + + Surface Mount + + SC-74A, SOT-753 + + SMV +
+
+
+
+
+ Results per Page + +
+
+ Page 1/1 +
+
+
+ +
+
+
+
+ +
+

16:32:19 8/2/2018

+
+ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF10LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF10LM(CTTR-ND.html new file mode 100644 index 0000000..365b46a --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF10LM(CTTR-ND.html @@ -0,0 +1,1830 @@ + + + + + + TCR2LF10,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF10,LM(CT Toshiba Semiconductor and Storage | TCR2LF10LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF10LM(CTTR-ND + + +
Quantity Available + + + + + + + 3,000 +
+Can ship immediately
+
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF10,LM(CT +

+ +
+ +
Description + IC REG LINEAR 1V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 12 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 1V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Online Catalog + + + + < 1.7V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +1V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +1.4V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF10,LM(CB
+TCR2LF10LM(CT
+TCR2LF10LM(CTTR
+
+
+ +

16:32:20 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF10LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 5,720 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF10LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 5,720 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF12LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF12LM(CTTR-ND.html new file mode 100644 index 0000000..bd84684 --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF12LM(CTTR-ND.html @@ -0,0 +1,1872 @@ + + + + + + TCR2LF12,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF12,LM(CT Toshiba Semiconductor and Storage | TCR2LF12LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF12LM(CTTR-ND + + +
Quantity Available + + + 0 +
+ + + + + + + +
+
+ +
+ +
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF12,LM(CT +

+ +
+ +
Description + IC REG LINEAR 1.2V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 12 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 1.2V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Online Catalog + + + + < 1.7V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +1.2V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +1.25V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+
You May Also Be Interested In
+
+
+ +
+
    +
  • + + TCR2LF33,LM(CT - Toshiba Semiconductor and Storage | TCR2LF33LM(CTCT-ND DigiKey Electronics + +
  • +
  • + + TCR2LF33,LM(CT + +
  • +
  • + Toshiba Semiconductor and Storage +
  • +
  • IC REG LINEAR 3.3V 200MA SMV
  • +
  • Unit Price +$0.45000 +
  • +
  • TCR2LF33LM(CTCT-ND
  • +
+
+
+
+
+ + +
+
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF12,LM(CB
+TCR2LF12LM(CT
+TCR2LF12LM(CTTR
+
+
+ +

16:32:20 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF12LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 2,558 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF12LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 2,558 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF15LM(CT-ND.html b/test/digikey/static-copies/search-TCR2LF15LM(CT-ND.html new file mode 100644 index 0000000..670c8ad --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF15LM(CT-ND.html @@ -0,0 +1,1712 @@ + + + + + + TCR2LF15,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ +
+
    +
  • Non-Stock ?
  • +
+
+ + +
+
+
+ + TCR2LF15,LM(CT Toshiba Semiconductor and Storage | TCR2LF15LM(CT-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF15LM(CT-ND + + +
Quantity Available + + + 0 +
+
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF15,LM(CT +

+ +
+ +
Description + IC REG LINEAR 1.5V 200MA SMV + + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 1.5V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + +
Datasheets + TCR2LF15
+
+ + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Cut Tape (CT) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +1.5V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +1.13V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF15,LM(CB
+TCR2LF15LM(CT
+
+
+ +

16:32:21 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07200$216.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF18LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF18LM(CTTR-ND.html new file mode 100644 index 0000000..9b92d20 --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF18LM(CTTR-ND.html @@ -0,0 +1,1887 @@ + + + + + + TCR2LF18,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF18,LM(CT Toshiba Semiconductor and Storage | TCR2LF18LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF18LM(CTTR-ND + + +
Quantity Available + + + + + + + 9,000 +
+Can ship immediately
+
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF18,LM(CT +

+ +
+ +
Description + IC REG LINEAR 1.8V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 10 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 1.8V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Online Catalog + + + + 1.8V to 2.4V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +1.8V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +0.62V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+
You May Also Be Interested In
+
+
+ +
+
    +
  • + + TCR2LE18,LM(CT - Toshiba Semiconductor and Storage | TCR2LE18LM(CTCT-ND DigiKey Electronics + +
  • +
  • + + TCR2LE18,LM(CT + +
  • +
  • + Toshiba Semiconductor and Storage +
  • +
  • IC REG LINEAR 1.8V 200MA ESV
  • +
  • Unit Price +$0.52000 +
  • +
  • TCR2LE18LM(CTCT-ND
  • +
+
+
+
    +
  • + + 93LC46BT-I/OT - Microchip Technology | 93LC46BT-I/OTCT-ND DigiKey Electronics + +
  • +
  • + + 93LC46BT-I/OT + +
  • +
  • + Microchip Technology +
  • +
  • IC EEPROM 1K SPI 2MHZ SOT23-6
  • +
  • Unit Price +$0.21000 +
  • +
  • 93LC46BT-I/OTCT-ND
  • +
+
+
+
+
+ + +
+
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF18,LM(CB
+TCR2LF18,LM(CT)
+TCR2LF18LM(CT
+TCR2LF18LM(CTTR
+TCR2LF18LMCT
+
+
+ +

16:32:07 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF18LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 11,337 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF18LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 11,337 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF25LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF25LM(CTTR-ND.html new file mode 100644 index 0000000..b322e66 --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF25LM(CTTR-ND.html @@ -0,0 +1,1970 @@ + + + + + + TCR2LF25,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF25,LM(CT Toshiba Semiconductor and Storage | TCR2LF25LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF25LM(CTTR-ND + + +
Quantity Available + + + 0 +
+ + + + + + + +
+
+ +
+ +
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF25,LM(CT +

+ +
+ +
Description + IC REG LINEAR 2.5V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 12 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 2.5V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Featured Product + Ultra-Low Dropout Voltage LDO
+
+ + +
+
Online Catalog + + + + 2.5V to 2.7V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +2.5V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +0.38V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+
You May Also Be Interested In
+
+
+ +
+
    +
  • + + NCP114AMX250TCG - ON Semiconductor | NCP114AMX250TCGOSCT-ND DigiKey Electronics + +
  • +
  • + + NCP114AMX250TCG + +
  • +
  • + ON Semiconductor +
  • +
  • IC REG LINEAR 2.5V 300MA 4UDFN
  • +
  • Unit Price +$0.33000 +
  • +
  • NCP114AMX250TCGOSCT-ND
  • +
+
+
+
    +
  • + + PA0184NLT - Pulse Electronics Power | 553-1524-1-ND DigiKey Electronics + +
  • +
  • + + PA0184NLT + +
  • +
  • + Pulse Electronics Power +
  • +
  • PULSE XFMR 1:1 1.2MH
  • +
  • Unit Price +$3.41000 +
  • +
  • 553-1524-1-ND
  • +
+
+
+
    +
  • + + BAV20WS-TP - Micro Commercial Co | BAV20WSTPMSCT-ND DigiKey Electronics + +
  • +
  • + + BAV20WS-TP + +
  • +
  • + Micro Commercial Co +
  • +
  • DIODE GEN PURP 150V 200MA SOD323
  • +
  • Unit Price +$0.22000 +
  • +
  • BAV20WSTPMSCT-ND
  • +
+
+
+
    +
  • + + SIR464DP-T1-GE3 - Vishay Siliconix | SIR464DP-T1-GE3CT-ND DigiKey Electronics + +
  • +
  • + + SIR464DP-T1-GE3 + +
  • +
  • + Vishay Siliconix +
  • +
  • MOSFET N-CH 30V 50A PPAK SO-8
  • +
  • Unit Price +$1.70000 +
  • +
  • SIR464DP-T1-GE3CT-ND
  • +
+
+
+
    +
  • + + 1770979 - Phoenix Contact | 277-2088-1-ND DigiKey Electronics + +
  • +
  • + + 1770979 + +
  • +
  • + Phoenix Contact +
  • +
  • CONN TERM BLK 4POS 2.5MM
  • +
  • Unit Price +$0.86000 +
  • +
  • 277-2088-1-ND
  • +
+
+
+
+
+ + +
+
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF25,LM(CB
+TCR2LF25LM(CT
+TCR2LF25LM(CTTR
+
+
+ +

16:32:22 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF25LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 2,455 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF25LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 2,455 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF27LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF27LM(CTTR-ND.html new file mode 100644 index 0000000..9c71c04 --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF27LM(CTTR-ND.html @@ -0,0 +1,1840 @@ + + + + + + TCR2LF27,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF27,LM(CT Toshiba Semiconductor and Storage | TCR2LF27LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF27LM(CTTR-ND + + +
Quantity Available + + + + + + + 3,000 +
+Can ship immediately
+
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF27,LM(CT +

+ +
+ +
Description + IC REG LINEAR 2.7V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 12 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 2.7V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Featured Product + Ultra-Low Dropout Voltage LDO
+
+ + +
+
Online Catalog + + + + 2.5V to 2.7V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +2.7V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +0.38V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF27,LM(CB
+TCR2LF27LM(CT
+TCR2LF27LM(CTTR
+
+
+ +

16:32:23 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF27LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 3,978 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF27LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 3,978 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF30LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF30LM(CTTR-ND.html new file mode 100644 index 0000000..500c05d --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF30LM(CTTR-ND.html @@ -0,0 +1,1896 @@ + + + + + + TCR2LF30,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF30,LM(CT Toshiba Semiconductor and Storage | TCR2LF30LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF30LM(CTTR-ND + + +
Quantity Available + + + 0 +
+ + + + + + + +
+
+ +
+ +
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF30,LM(CT +

+ +
+ +
Description + IC REG LINEAR 3V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 10 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 3V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Online Catalog + + + + 2.75V to 3V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +3V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +0.3V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+
You May Also Be Interested In
+
+
+ +
+ +
+
+
    +
  • + + TPS61021ADSGR - Texas Instruments | 296-47240-1-ND DigiKey Electronics + +
  • +
  • + + TPS61021ADSGR + +
  • +
  • + Texas Instruments +
  • +
  • IC REG BOOST ADJ 3A SYNC 8WSON
  • +
  • Unit Price +$1.55000 +
  • +
  • 296-47240-1-ND
  • +
+
+
+
+
+ + +
+
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF30,LM(CB
+TCR2LF30,LM(CT)
+TCR2LF30LM(CT
+TCR2LF30LM(CTTR
+TCR2LF30LMCT
+
+
+ +

16:32:24 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF30LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 2,247 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF30LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 2,247 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF32LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF32LM(CTTR-ND.html new file mode 100644 index 0000000..7644ed9 --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF32LM(CTTR-ND.html @@ -0,0 +1,1830 @@ + + + + + + TCR2LF32,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF32,LM(CT Toshiba Semiconductor and Storage | TCR2LF32LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF32LM(CTTR-ND + + +
Quantity Available + + + + + + + 3,000 +
+Can ship immediately
+
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF32,LM(CT +

+ +
+ +
Description + IC REG LINEAR 3.2V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 12 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 3.2V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Online Catalog + + + + 3.1V to 3.3V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +3.2V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +0.3V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF32,LM(CB
+TCR2LF32LM(CT
+TCR2LF32LM(CTTR
+
+
+ +

16:32:25 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF32LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 3,341 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF32LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 3,341 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF33LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF33LM(CTTR-ND.html new file mode 100644 index 0000000..4c8c943 --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF33LM(CTTR-ND.html @@ -0,0 +1,1951 @@ + + + + + + TCR2LF33,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF33,LM(CT Toshiba Semiconductor and Storage | TCR2LF33LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF33LM(CTTR-ND + + +
Quantity Available + + + + + + + 3,000 +
+Can ship immediately
+
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF33,LM(CT +

+ +
+ +
Description + IC REG LINEAR 3.3V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 12 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 3.3V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Online Catalog + + + + 3.1V to 3.3V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +3.3V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +0.3V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+
You May Also Be Interested In
+
+
+ +
+
    +
  • + + NL27WZ17DFT2G - ON Semiconductor | NL27WZ17DFT2GOSCT-ND DigiKey Electronics + +
  • +
  • + + NL27WZ17DFT2G + +
  • +
  • + ON Semiconductor +
  • +
  • IC BUFFER NON-INVERT 5.5V SC88
  • +
  • Unit Price +$0.41000 +
  • +
  • NL27WZ17DFT2GOSCT-ND
  • +
+
+
+
    +
  • + + STM32F030C6T6 - STMicroelectronics | 497-14042-ND DigiKey Electronics + +
  • +
  • + + STM32F030C6T6 + +
  • +
  • + STMicroelectronics +
  • +
  • IC MCU 32BIT 32KB FLASH 48LQFP
  • +
  • Unit Price +$1.60000 +
  • +
  • 497-14042-ND
  • +
+
+
+
    +
  • + + TCR2LF12,LM(CT - Toshiba Semiconductor and Storage | TCR2LF12LM(CTCT-ND DigiKey Electronics + +
  • +
  • + + TCR2LF12,LM(CT + +
  • +
  • + Toshiba Semiconductor and Storage +
  • +
  • IC REG LINEAR 1.2V 200MA SMV
  • +
  • Unit Price +$0.45000 +
  • +
  • TCR2LF12LM(CTCT-ND
  • +
+
+
+
    +
  • + + NCP4632DDTADJT5G - ON Semiconductor | NCP4632DDTADJT5GOSCT-ND DigiKey Electronics + +
  • +
  • + + NCP4632DDTADJT5G + +
  • +
  • + ON Semiconductor +
  • +
  • IC REG LINEAR POS ADJ 3A DPAK-5
  • +
  • Unit Price +$2.57000 +
  • +
  • NCP4632DDTADJT5GOSCT-ND
  • +
+
+
+
    +
  • + + SMD1150PL-TP - Micro Commercial Co | SMD1150PL-TPMSCT-ND DigiKey Electronics + +
  • +
  • + + SMD1150PL-TP + +
  • +
  • + Micro Commercial Co +
  • +
  • DIODE SCHOTTKY 150V 1A SOD123FL
  • +
  • Unit Price +$0.49000 +
  • +
  • SMD1150PL-TPMSCT-ND
  • +
+
+
+
+
+ + +
+
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF33,LM(CB
+TCR2LF33LM(CT
+TCR2LF33LM(CTTR
+
+
+ +

16:32:25 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF33LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 4,902 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF33LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 4,902 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/digikey/static-copies/search-TCR2LF36LM(CTTR-ND.html b/test/digikey/static-copies/search-TCR2LF36LM(CTTR-ND.html new file mode 100644 index 0000000..0eaeb7c --- /dev/null +++ b/test/digikey/static-copies/search-TCR2LF36LM(CTTR-ND.html @@ -0,0 +1,1839 @@ + + + + + + TCR2LF36,LM(CT Toshiba Semiconductor and Storage | Integrated Circuits (ICs) | DigiKey + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + Add To Favorites + + + +
+ + + +
+
+ + + +
+
+
+ + TCR2LF36,LM(CT Toshiba Semiconductor and Storage | TCR2LF36LM(CTTR-ND DigiKey Electronics + + +
+
+ +

+ +
+
+ +
+
+
+ Product Overview +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Digi-Key Part Number + + TCR2LF36LM(CTTR-ND + + +
Quantity Available + + + 0 +
+ + + + + + + +
+
+ +
+ +
Manufacturer +

+ + + + + + +

+ +
+ +
Manufacturer Part Number + +

+ TCR2LF36,LM(CT +

+ +
+ +
Description + IC REG LINEAR 3.6V 200MA SMV + + + +
Manufacturer Standard Lead Time + + 12 Weeks + + +
Detailed Description +

+ Linear Voltage Regulator IC Positive Fixed 1 Output 3.6V 200mA SMV + +

+ +
+ +
+
+
+
+ + + +
+
+ Documents & Media +
+ + + + + + + + + + + + + +
Datasheets + TCR2LF,LE Series
+
+ + +
+
Design Resources + Development Tool Selector
+
+ + +
+
Online Catalog + + + + 3.35V to 5V Output + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Product Attributes + Select All
Categories + +
+ +
ManufacturerToshiba Semiconductor and Storage
Series + + +- +
+ Packaging +? + + + Tape & Reel (TR) ? + +
+ Part Status + + + +Active +
+ Output Configuration + + + +Positive +
+ Output Type + + + +Fixed +
+ Number of Regulators + + + +1 +
+ Voltage - Input (Max) + + + +5.5V +
+ Voltage - Output (Min/Fixed) + + + +3.6V +
+ Voltage - Output (Max) + + + +- +
+ Voltage Dropout (Max) + + + +0.3V @ 150mA +
+ Current - Output + + + +200mA +
+ Current - Quiescent (Iq) + + + +2µA +
+ PSRR + + + +- +
+ Control Features + + + +Enable +
+ Protection Features + + + +Over Current +
+ Operating Temperature + + + +-40°C ~ 85°C (TJ) +
+ Mounting Type + + + +Surface Mount +
+ Package / Case + + + +SC-74A, SOT-753 +
+ Supplier Device Package + + + +SMV +
+ +
+   + +
+ +
+ + + +
+ + +
+
Environmental & Export Classifications
+ + + + + + + + + + + +
+ Lead Free Status / RoHS Status + + Lead free / RoHS Compliant +
Moisture Sensitivity Level (MSL)1 (Unlimited)
+
+ + +
+ + +
+ + + +
+
+ Additional Resources +
+ + + + + + + + + + + + +
Standard Package ? 3,000
+ Other Names + +TCR2LF36,LM(CB
+TCR2LF36LM(CT
+TCR2LF36LM(CTTR
+
+
+ +

16:33:16 8/2/2018

+
+
+
+ +
+ Price & Procurement +
+
+ + + + +
 
+

+ +
+ + + + + + + + + + + + + + + + + + + + +
Quantity + +
+ +
+ +
+ +
+ + +
+ +
+ All prices are in USD. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Price BreakUnit PriceExtended Price
3,000 0.07000$210.00
6,0000.06300$378.00
15,0000.05600$840.00
30,0000.05250$1,575.00
75,0000.04655$3,491.25
150,0000.04480$6,720.00
+ +

+ Submit a request for quotation on quantities greater than those displayed.
+

+
+
+ + +
+
Alternate Package | This part is also available in the following packaging:
+
+
+
    +
  • + + + Cut Tape (CT) ? +: + + TCR2LF36LM(CTCT-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 1,310 - Immediate
    + +
  • +
  • + Unit Price: +$0.45000 +
  • +
+
    +
  • + + + Digi-Reel® ? +: + + TCR2LF36LM(CTDKR-ND + +
  • +
  • + Minimum Quantity: +1 + + +
  • +
  • + Quantity Available: + 1,310 - Immediate
    + +
  • +
  • + Unit Price: +Digi-Reel® + +
  • +
+
+ +
+
+ + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + diff --git a/test/test_digikey.py b/test/test_digikey.py index 015b7ca..733dcf7 100644 --- a/test/test_digikey.py +++ b/test/test_digikey.py @@ -1,20 +1,24 @@ -import configparser -import ee.digikey as dk import io -import os.path -import pytest -import sys from itertools import groupby +from pathlib import Path -basedir = os.path.dirname(os.path.abspath(__file__)) +import pytest +import requests + +import ee.digikey as dk + +basedir = Path(__file__).parent +static_copies = basedir / "digikey" / "static-copies" # type: Path digikey = dk.Digikey() -client = dk.DigikeyClient(digikey, on_download=print) +client = dk.DigikeyClient(digikey, cache_dir=basedir / "digikey" / "http_cache", on_download=print) @pytest.mark.digikey def test_digikey_1(tmpdir): - res = client.search("TCR2LF18LM(CTTR-ND") + content = cache_file("https://www.digikey.com/products/en?lang=en&site=us&pageSize=10", "TCR2LF18LM(CTTR-ND") + + res = client.parse_string(content) assert res.response_type == dk.SearchResponseTypes.SINGLE p = res.products[0] assert p.part_number == "TCR2LF18LM(CTTR-ND" @@ -36,23 +40,59 @@ def test_digikey_1(tmpdir): @pytest.mark.digikey -def test_digikey_2(tmpdir): - res = client.search("TCR2LF", page_size=500) +def test_digikey_2(): + content = cache_file("https://www.digikey.com/products/en?lang=en&site=us&keywords=TCR2LF&pageSize=500", "TCR2LF") + + res = client.parse_string(content) assert res.response_type == dk.SearchResponseTypes.MANY [print("dpn={}, mpn={}".format(p.part_number, p.mpn)) for p in res.products] assert len(res.products) == 28 - print("path={}".format(tmpdir)) - repo = dk.DigikeyRepository(digikey, tmpdir) - for mpn, parts in groupby(sorted(res.products, key=lambda p: p.mpn), lambda p: p.mpn): parts = list(parts) print("mpn={}, parts={}".format(mpn, [p.part_number for p in parts])) dpn = parts[0].part_number print("Downloading {} as {}".format(mpn, dpn)) - res = client.search(dpn) + + content = cache_file("https://www.digikey.com/products/en?lang=en&site=us&pageSize=500", dpn) + + res = client.parse_string(content) assert res.response_type == dk.SearchResponseTypes.SINGLE p = res.products[0] - repo.save(p) + assert p.part_number == dpn + assert p.mpn == mpn + + +@pytest.mark.digikey +def test_digikey_3(): + content = cache_file("https://www.digikey.com/products/en?lang=en&site=us&pageSize=10", "S1MTR") + + res = client.parse_string(content) + assert res.response_type == dk.SearchResponseTypes.MANY + [print("dpn={}, mpn={}".format(p.part_number, p.mpn)) for p in res.products] + assert len(res.products) == 1 + p = res.products[0] + assert p.part_number == "1655-1506-1-ND" + assert p.mpn == "S1MTR" + assert p.url == "/product-detail/en/smc-diode-solutions/S1MTR/1655-1506-1-ND/6022951" + + +def cache_file(url, keyword): + path = static_copies / "search-{}.html".format(keyword) + + if not path.is_file(): + path.parent.mkdir(parents=True, exist_ok=True) + res = requests.get(url, params=dict(keywords=keyword)) + + assert res.status_code == 200 + + with open(path, "w") as f: + f.write(res.text) + assert path.stat().st_size > 0 + + with open(path, "r") as f: + content = f.read() + + return content -- cgit v1.2.3