From 68c39f74324b9d51655cd87107300d81e9c73556 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Fri, 2 May 2014 14:00:58 -0400 Subject: archive octopart fetch experimental code --- octopart/example | 704 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 704 insertions(+) create mode 100644 octopart/example (limited to 'octopart/example') diff --git a/octopart/example b/octopart/example new file mode 100644 index 0000000..e7125e3 --- /dev/null +++ b/octopart/example @@ -0,0 +1,704 @@ +{ + "__class__": "PartsMatchResponse", + "msec": 108, + "request": { + "__class__": "PartsMatchRequest", + "exact_only": false, + "queries": [ + { + "__class__": "PartsMatchQuery", + "brand": null, + "limit": 3, + "mpn": "SN74S74N", + "mpn_or_sku": null, + "q": "", + "reference": null, + "seller": null, + "sku": null, + "start": 0 + } + ] + }, + "results": [ + { + "__class__": "PartsMatchResult", + "error": null, + "hits": 7, + "items": [ + { + "__class__": "Part", + "brand": { + "__class__": "Brand", + "name": "Texas Instruments", + "uid": "0b07ca0d2713dcc0" + }, + "manufacturer": { + "__class__": "Manufacturer", + "name": "Texas Instruments" + }, + "mpn": "SN74S74N", + "octopart_url": "http://octopart.com/sn74s74n-texas+instruments-54445", + "offers": [ + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 1001, + "is_authorized": true, + "last_updated": "2013-05-08T12:31:28Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": { + "USD": [ + [ + 1, + "0.91700" + ], + [ + 25, + "0.91700" + ], + [ + 100, + "0.91700" + ], + [ + 250, + "0.78600" + ], + [ + 500, + "0.73400" + ] + ] + }, + "product_url": "http://octopart.com/click/vptrack?ak=EXAMPLE_KEY&sig=0ed57b4&vpid=3121607", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Newark", + "uid": "69a0acaa49a4ba67" + }, + "sku": "67K1122" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 381, + "is_authorized": true, + "last_updated": "2013-05-07T20:13:43Z", + "moq": 1, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": 1, + "packaging": null, + "prices": { + "USD": [ + [ + 1, + "0.94200" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=0b4bbc1&vpid=15359403", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Arrow", + "uid": "7c38b932510cafff" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 349, + "is_authorized": true, + "last_updated": "2013-05-08T07:32:02Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": { + "USD": [ + [ + 1, + "1.72000" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=012e8e4&vpid=37770315", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Mouser", + "uid": "4490819a64979757" + }, + "sku": "595-SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": 30, + "factory_pack_quantity": null, + "in_stock_quantity": 459, + "is_authorized": true, + "last_updated": "2013-05-08T13:15:35Z", + "moq": 1, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": "Tube", + "prices": { + "USD": [ + [ + 1, + "1.71000" + ], + [ + 25, + "1.37520" + ], + [ + 100, + "1.23750" + ], + [ + 250, + "1.10000" + ], + [ + 500, + "0.96250" + ], + [ + 1000, + "0.79750" + ], + [ + 2500, + "0.74250" + ], + [ + 5000, + "0.71500" + ], + [ + 10000, + "0.68750" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=0647a93&vpid=1600464", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Digi-Key", + "uid": "30d8f5d21875e31f" + }, + "sku": "296-1734-5-ND" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 13, + "is_authorized": true, + "last_updated": "2013-05-08T06:26:12Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": { + "USD": [ + [ + 1, + "1.38000" + ], + [ + 25, + "1.11000" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=0083110&vpid=38427653", + "seller": { + "__class__": "Seller", + "display_flag": "CN", + "name": "element14 APAC", + "uid": "3353f65937d5e094" + }, + "sku": "1607733" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 225, + "is_authorized": false, + "last_updated": "2013-05-08T16:52:24Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": { + "USD": [ + [ + 75, + "0.84450" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=06ab8f5&vpid=17557135", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Verical", + "uid": "fc933999c0842f54" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 1542, + "is_authorized": false, + "last_updated": "2013-05-09T13:57:03Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": { + "USD": [ + [ + 1, + "1.40000" + ], + [ + 5, + "1.12000" + ], + [ + 19, + "0.70000" + ], + [ + 87, + "0.42000" + ], + [ + 477, + "0.36400" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=0e90df7&vpid=3584217", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Quest", + "uid": "554c90467546868b" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 387, + "is_authorized": false, + "last_updated": "2013-05-08T14:41:50Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": { + "USD": [ + [ + 1, + "0.38000" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=0650ee1&vpid=44195630", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Freelance Electronics", + "uid": "2347e64d3927f080" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 40, + "is_authorized": false, + "last_updated": "2013-04-18T14:00:45Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": { + "USD": [ + [ + 1, + "1.36000" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=057392e&vpid=69568903", + "seller": { + "__class__": "Seller", + "display_flag": "CN", + "name": "iiiC", + "uid": "606ea5646eb8b3a9" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 140, + "is_authorized": false, + "last_updated": "2013-05-09T16:07:37Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=02c5c40&vpid=54816323", + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "PriceLynx", + "uid": "cc01090bdf0a1fc6" + }, + "sku": "WI-791-4-36181" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 5982, + "is_authorized": false, + "last_updated": "2013-05-02T16:30:08Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Harry Krantz", + "uid": "f0a235a8e7402365" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 0, + "is_authorized": false, + "last_updated": "2013-03-25T17:36:38Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Select Technology", + "uid": "a14f6445a4767288" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 40, + "is_authorized": false, + "last_updated": "2013-05-08T13:20:05Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "EDX", + "uid": "2f20ea2a0f30fce7" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 25, + "is_authorized": false, + "last_updated": "2013-04-19T21:08:08Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "CA", + "name": "Component Electronics", + "uid": "97aa52a0fdb3446d" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 1, + "is_authorized": false, + "last_updated": "2013-05-08T15:41:06Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "AED Electronics", + "uid": "be767b7cbfbf6db1" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 426, + "is_authorized": false, + "last_updated": "2013-05-08T19:48:15Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Component Sense 24", + "uid": "d0391533cadf03fe" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 25, + "is_authorized": false, + "last_updated": "2013-05-08T11:02:26Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "4 Star Electronics", + "uid": "c24b0741df61118c" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 2545, + "is_authorized": false, + "last_updated": "2013-05-08T11:13:22Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Area51-Recertified", + "uid": "8c53495990c65f94" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 25, + "is_authorized": false, + "last_updated": "2013-03-27T16:49:53Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "GB", + "name": "Cyclops Electronics", + "uid": "e6f023faf0a83537" + }, + "sku": "SN74S74N" + }, + { + "__class__": "PartOffer", + "factory_lead_days": 5, + "factory_pack_quantity": null, + "in_stock_quantity": 250, + "is_authorized": false, + "last_updated": "2013-05-08T09:02:10Z", + "moq": 25, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": "Tube", + "prices": { + "USD": [ + [ + 25, + "1.29000" + ], + [ + 50, + "1.32000" + ], + [ + 100, + "1.15000" + ], + [ + 500, + "0.91000" + ], + [ + 1000, + "0.83000" + ], + [ + 2000, + "0.77000" + ] + ] + }, + "product_url": "http://octopart-clicks.com/click/vptrack?ak=EXAMPLE_KEY&sig=065c7dc&vpid=56982514", + "seller": { + "__class__": "Seller", + "display_flag": "JP", + "name": "Chip One Stop", + "uid": "adf768fdb0597e30" + }, + "sku": "TI01-0129385" + }, + { + "__class__": "PartOffer", + "factory_lead_days": null, + "factory_pack_quantity": null, + "in_stock_quantity": 2000, + "is_authorized": false, + "last_updated": "2013-04-29T23:47:34Z", + "moq": null, + "on_order_eta": null, + "on_order_quantity": null, + "order_multiple": null, + "packaging": null, + "prices": {}, + "product_url": null, + "seller": { + "__class__": "Seller", + "display_flag": "US", + "name": "Electronic Expediters", + "uid": "616ea464418cb2a9" + }, + "sku": "SN74S74N" + } + ], + "uid": "5ec397c9af088104", + "uid_v2": 5444533155 + }, + { + "__class__": "Part", + "brand": { + "__class__": "Brand", + "name": "Rochester Electronics", + "uid": "fdad3ca7da852a6a" + }, + "manufacturer": { + "__class__": "Manufacturer", + "name": "Rochester Electronics" + }, + "mpn": "SN74S74N", + "octopart_url": "http://octopart.com/sn74s74n-rochester+electronics-16923733", + "offers": [], + "uid": "be86768ea7b56141", + "uid_v2": 1692373334589 + }, + { + "__class__": "Part", + "brand": { + "__class__": "Brand", + "name": "National Semiconductor", + "uid": "8bdb4ad1a7bb5c1c" + }, + "manufacturer": { + "__class__": "Manufacturer", + "name": "National Semiconductor" + }, + "mpn": "SN74S74N", + "octopart_url": "http://octopart.com/sn74s74n-national+semiconductor-9336958", + "offers": [], + "uid": "843f4dbbd9275bf8", + "uid_v2": 933695803142 + } + ], + "reference": null + } + ] +} \ No newline at end of file -- cgit v1.2.3