File size: 54,808 Bytes
a1c8685
 
 
 
 
 
 
2ae29dd
 
 
 
 
 
 
 
 
 
a1c8685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2ae29dd
 
 
 
 
 
 
 
 
 
a1c8685
2ae29dd
 
 
a1c8685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2ae29dd
a1c8685
 
 
 
2ae29dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1c8685
2ae29dd
a1c8685
2ae29dd
 
 
 
 
a1c8685
2ae29dd
 
 
a1c8685
2ae29dd
 
 
 
a1c8685
2ae29dd
 
a1c8685
2ae29dd
 
 
 
 
a1c8685
2ae29dd
a1c8685
2ae29dd
 
 
 
 
a1c8685
2ae29dd
 
 
 
 
 
 
 
 
a1c8685
2ae29dd
 
a1c8685
 
 
 
2ae29dd
a1c8685
 
 
 
 
 
 
2ae29dd
a1c8685
 
 
 
 
2ae29dd
 
 
 
 
 
 
 
 
 
 
a1c8685
 
 
 
 
 
 
 
 
2ae29dd
a1c8685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2ae29dd
a1c8685
 
 
 
 
 
 
 
 
 
 
2ae29dd
a1c8685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2ae29dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1c8685
 
 
 
 
 
 
 
2ae29dd
 
 
 
 
a1c8685
2ae29dd
a1c8685
 
 
 
 
 
2ae29dd
 
a1c8685
 
 
2ae29dd
a1c8685
 
 
 
 
2ae29dd
a1c8685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2ae29dd
a1c8685
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "5223b1b7",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "WARNING:tensorflow:From c:\\Users\\Omar\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\tf_keras\\src\\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "from web2json.preprocessor import *\n",
    "from web2json.ai_extractor import *\n",
    "from web2json.postprocessor import *\n",
    "from web2json.pipeline import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "ae4e7f03",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import dotenv\n",
    "dotenv.load_dotenv()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "9e6b0eb9",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Some weights of Qwen3ForSequenceClassification were not initialized from the model checkpoint at Qwen/Qwen3-Reranker-0.6B and are newly initialized: ['score.weight']\n",
      "You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.\n"
     ]
    }
   ],
   "source": [
    "llm = NvidiaLLMClient(config={'api_key': os.getenv('NVIDIA_API_KEY'),'model_name': 'qwen/qwen2.5-7b-instruct'})\n",
    "# reranker = NvidiaRerankerClient(config={'api_key': os.getenv('NVIDIA_API_KEY'),'model_name': 'nv-rerank-qa-mistral-4b:1'})\n",
    "reranker = HFRerankerClient()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "3bc223d0",
   "metadata": {},
   "outputs": [],
   "source": [
    "prompt_template = \"\"\"\n",
    "You are a helpful assistant that extracts structured data from web pages.\n",
    "You will be given a web page and you need to extract the following information:\n",
    "{content}\n",
    "\n",
    "schema: {schema}\n",
    "Please provide the extracted data in JSON format.\n",
    "WITH ONLY THE FIELDS THAT ARE IN THE SCHEMA.\n",
    "\"\"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "475fccd2",
   "metadata": {},
   "outputs": [],
   "source": [
    "classification_prompt_template = \"\"\"\n",
    "{\n",
    "  \"title\": {\"type\": \"string\", \"description\": \"Page title\"},\n",
    "  \"price\": {\"type\": \"number\", \"description\": \"Product price\"},\n",
    "  \"description\": {\"type\": \"string\", \"description\": \"Product description\"}\n",
    "}\n",
    "\"\"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "974417de",
   "metadata": {},
   "outputs": [],
   "source": [
    "# classification_prompt_template = \"\"\"\n",
    "#     # HTML Chunk Relevance Classification Prompt\n",
    "\n",
    "#     You are an HTML content classifier. Your task is to analyze an HTML chunk against a given schema and determine if the content is relevant.\n",
    "\n",
    "#     ## Instructions:\n",
    "#     1. Carefully examine the provided HTML chunk\n",
    "#     2. Compare it against the given schema/criteria\n",
    "#     3. Determine if the HTML chunk contains content that matches or is relevant to the schema\n",
    "#     4. Respond with ONLY a JSON object containing a single field \"relevant\" with value 1 (relevant) or 0 (not relevant)\n",
    "\n",
    "#     ## Input Format:\n",
    "#     **Schema/Criteria:**\n",
    "#     {schema}\n",
    "\n",
    "#     **HTML Chunk:**\n",
    "#     ```html\n",
    "#     {content}\n",
    "#     ```\n",
    "\n",
    "#     ## Output Format:\n",
    "#     Your response must be ONLY a valid JSON object with no additional text:\n",
    "\n",
    "#     ```json\n",
    "#     {{\n",
    "#     \"relevant\": 1\n",
    "#     }}\n",
    "#     ```\n",
    "\n",
    "#     OR\n",
    "\n",
    "#     ```json\n",
    "#     {{\n",
    "#     \"relevant\": 0\n",
    "#     }}\n",
    "#     ```\n",
    "\n",
    "#     ## Classification Rules:\n",
    "#     - Output 1 if the HTML chunk contains content that matches the schema criteria\n",
    "#     - Output 0 if the HTML chunk does not contain relevant content\n",
    "#     - Consider semantic meaning, not just exact keyword matches\n",
    "#     - Look at text content, attributes, structure, and context\n",
    "#     - Ignore purely structural HTML elements (like divs, spans) unless they contain relevant content\n",
    "#     - Be STRICT in your evaluation - only mark as relevant (1) if there is clear, meaningful content that directly relates to the schema\n",
    "#     - Empty elements, placeholder text, navigation menus, headers/footers, and generic UI components should typically be marked as not relevant (0)\n",
    "#     - The HTML chunk does not need to contain ALL schema information, but it must contain SUBSTANTIAL and SPECIFIC content related to the schema\n",
    "\n",
    "#     CRITICAL: Your entire response MUST be exactly one JSON object. DO NOT include any explanations, reasoning, markdown formatting, code blocks, or additional text. Output ONLY the raw JSON object.\n",
    "#     \"\"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "58436d65",
   "metadata": {},
   "outputs": [],
   "source": [
    "pre = BasicPreprocessor(config={'keep_tags':True})\n",
    "# llm = GeminiLLMClient(config={'api_key': os.getenv('GEMINI_API_KEY'),})\n",
    "# ai = AIExtractor(llm_client=llm ,prompt_template=prompt_template)\n",
    "ai = LLMClassifierExtractor(reranker=reranker, llm_client=llm, prompt_template=prompt_template, classifier_prompt=classification_prompt_template)\n",
    "post = PostProcessor()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "c1c43f7c",
   "metadata": {},
   "outputs": [],
   "source": [
    "# ai.extract(chunks=[\"the price is $1000\", \"the title is 'NVIDIA H100 SXM'\"])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "9c78eec9",
   "metadata": {},
   "outputs": [],
   "source": [
    "pipe = Pipeline(preprocessor=pre, ai_extractor=ai, postprocessor=post)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "0b324a01",
   "metadata": {},
   "outputs": [],
   "source": [
    "from pydantic import BaseModel, Field, constr, condecimal\n",
    "\n",
    "class ProductModel(BaseModel):\n",
    "    productTitle: constr(min_length=1, max_length=200) = Field(\n",
    "        ...,\n",
    "        title=\"Product Title\",\n",
    "        description=\"The full title of the product\"\n",
    "    )\n",
    "    price: condecimal(gt=0, decimal_places=2) = Field(\n",
    "        ...,\n",
    "        title=\"Product Price\",\n",
    "        description=\"Unit price (must be > 0, two decimal places).\"\n",
    "    )\n",
    "    manufacturer: constr(min_length=1, max_length=1000) = Field(\n",
    "        ...,\n",
    "        title=\"Manufacturer\",\n",
    "        description=\"Name of the product manufacturer.\"\n",
    "    )\n",
    "\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "92a5fc23",
   "metadata": {},
   "outputs": [],
   "source": [
    "config = {\n",
    "    'keep_tags': True,\n",
    "}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "d2cfb033",
   "metadata": {},
   "outputs": [],
   "source": [
    "url = \"https://www.amazon.com/Instant-Pot-Multi-Use-Programmable-Pressure/dp/B00FLYWNYQ?_encoding=UTF8&content-id=amzn1.sym.2f889ce0-246f-467a-a086-d9a721167240&dib=eyJ2IjoiMSJ9.2EzBddTDEktLY8ckTsraM_cZ6pzKuNkA6y_gLR0-Uz1ekttQU6tuQEcjb8PThy0PfhvxLqeYWh3N7pQrGgRxAWzapVklC_aU6xBzD-3Wwqx3qyQRHsmOhPRsSpeCOIIZqS3SKDowZEPYrGnCbRMt5vxnsYMW-fD-zBbgeoeGYmbsN2U6_HNhLjrpePKCbQPmnZBJ9UhgYE4fE3DVuYm8xlJe9l5GixDLVFtZUq4m5FE.Ol-jiuu9P6mQie0yXLJj-Ht5-TXmIXuRPije85p_YVo&dib_tag=se&keywords=cooker&pd_rd_r=2cede598-f3ae-49ca-8a46-e5945a9c2631&pd_rd_w=2HLSC&pd_rd_wg=ZyUUn&qid=1749508157&sr=8-3\"\n",
    "schema = ProductModel  # pydantic class\n",
    "\n",
    "# read html file \n",
    "# with open(r'C:\\Users\\abdfa\\Desktop\\UNI STUFFING\\GRADUATION PROJECT\\Group Work\\MCP_WEB2JSON\\0000.htm', 'r', encoding='utf-8') as file:\n",
    "#     content = file.read()\n",
    "\n",
    "# with open(r'C:\\Users\\abdfa\\Desktop\\UNI STUFFING\\GRADUATION PROJECT\\Group Work\\MCP_WEB2JSON\\Amazon.com_ Instant Pot Duo 7-in-1 Electric Pressure Cooker, Slow Cooker, Rice Cooker, Steamer, Sauté, Yogurt Maker, Warmer & Sterilizer, Includes App With Over 800 Recipes, Stainless Steel, 6 Quart.htm', 'r', encoding='utf-8') as file:\n",
    "#     content = file.read()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "f07e1aca",
   "metadata": {},
   "outputs": [],
   "source": [
    "# import os\n",
    "\n",
    "# content = \"\"\"<html>\n",
    "# <body>\n",
    "# \"\"\"\n",
    "\n",
    "# from web2json.ai_extractor import HFRerankerClient, LLMClassifierExtractor, NvidiaLLMClient\n",
    "\n",
    "# hf_reranker = HFRerankerClient()\n",
    "# llm_client = NvidiaLLMClient(config={\"api_key\": os.environ.get('NVIDIA_API_KEY')})\n",
    "# extractor = LLMClassifierExtractor(\n",
    "#     reranker=hf_reranker,\n",
    "#     llm_client=llm_client,\n",
    "#     prompt_template=\"Extract from: {content} using schema: {schema}\",\n",
    "#     classifier_prompt=\"What is the price?\"\n",
    "# )\n",
    "\n",
    "# # Run using HuggingFace reranker\n",
    "# result = extractor.extract(content=content, schema=schema, hf=True)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "79cf2321",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n",
      "Content successfully chunked into 11.\n",
      "Content successfully chunked: [\"<html><head>\\n<link/>\\n<link/>\\n<link/>\\n<meta/><title>Amazon.com: Instant Pot Duo 7-in-1 Electric Pressure Cooker, Slow Cooker, Rice Cooker, Steamer, Sauté, Yogurt Maker, Warmer &amp; Sterilizer, Includes App With Over 800 Recipes, Stainless Steel, 6 Quart</title>\\n</head><body><div><button>\\n  Shortcuts menu\\n</button></div></body><body><div><nav>\\n<h2>Skip to</h2>\\n<ul>\\n<li>\\n        Main content\\n</li>\\n<li>\\n        About this item\\n</li>\\n<li>\\n        About this item\\n</li>\\n<li>\\n        About this item\\n</li>\\n<li>\\n        Buying options\\n</li>\\n<li>\\n        Compare with similar items\\n</li>\\n<li>\\n        Videos\\n</li>\\n<li>\\n        Reviews\\n</li>\\n</ul>\\n<h2>\\n      Keyboard shortcuts\\n  </h2>\\n<ul>\\n<li>\\nSearch\\nalt\\n+\\n/\\n</li>\\n<li>\\nCart\\nshift\\n+\\nalt\\n+\\nC\\n</li>\\n<li>\\nHome\\nshift\\n+\\nalt\\n+\\nH\\n</li>\\n<li>\\nOrders\\nshift\\n+\\nalt\\n+\\nO\\n</li>\\n<li>\\n<button>\\n<div>\\n<span>Add to cart</span>\\n<div>\\n<span>shift</span>\\n<span>+</span>\\n<span>alt</span>\\n<span>+</span>\\n<span>K</span>\\n</div>\\n</div>\\n</button>\\n</li>\\n<li>\\n<button>\\n<div>\\n<span>Open/close shortcuts menu</span>\\n<div>\\n<span>shift</span>\\n<span>+</span>\\n<span>alt</span>\\n<span>+</span>\\n<span>Z</span>\\n</div>\\n</div>\\n</button>\\n</li>\\n</ul>\\n<div>\\n<div>\\n<div>\\n<div>\\n<span>To move between items, use your keyboard's up or down arrows.</span>\\n</div>\\n</div>\\n</div>\\n</div>\\n</nav></div></body><body><div><div><div><div>\\n<div>\\n<div><div><div><ul><li><span>Home &amp; Kitchen</span></li><li><span>›</span></li><li><span>Kitchen &amp; Dining</span></li><li><span>›</span></li><li><span>Small Appliances</span></li><li><span>›</span></li><li><span>Rice Cookers</span></li></ul></div></div></div> </div>\\n</div></div></div></div></body></html>\", '<html><body><div><div><div><div><div><div><div><div><div><div><div><div><div><div> <div> <h5> <div>\\n<div> <span> Deal Price   Regular Price </span> </div> </div>\\n</h5> <div>\\n<div>\\n<div>\\n<div>\\n<div>\\n<div> <div>\\n<div>\\n<span><span>$79.99</span><span><span>$</span><span>79<span>.</span></span><span>99</span></span></span> </div>\\n</div> </div> </div>\\n</div>\\n</div>\\n</div>\\n<div>\\n<div> <div> <div> <span> Ships from: </span> <span> Amazon.com </span> </div> </div> <div> <div> <span> Sold by: </span> <span> Amazon.com </span> </div> </div> </div> </div>\\n</div>\\n<div><form><input/></form></div><div><form><div><div><div>\\n<div>\\n<span> $235.34 Shipping &amp; Import Fees Deposit to Egypt </span> <span>   Details   </span> <div> <h3>Shipping &amp; Fee Details</h3>\\n<table> <tr> <td> <span> Price </span> </td> <td> <span> $99.95 </span> </td> </tr> <tr> <td> <span> AmazonGlobal Shipping </span> </td> <td> <span> $81.05 </span> </td> </tr> <tr> <td> <span> \\n                                        Estimated Import Fees Deposit\\n</span> </td> <td> <span> $154.29 </span> </td> </tr> <tr> <td> <span>Total</span> </td> <td> <span> $335.29 </span> </td> </tr> </table> </div>\\n</div>\\n<div>\\n<div>\\n<div><div><div><span> Delivery <span>Sunday, July 13</span>. Order within <span>23 hrs 59 mins</span> </span></div></div></div> </div>\\n<div>\\n<span>    \\nDeliver to\\xa0Egypt\\n   </span> </div>\\n</div>\\n</div></div></div></form></div><div><form><div><div><div>\\n<div> <div> <span> In Stock </span> </div> </div> </div></div></div></form></div></div> <div>\\n<div>\\n<div> <div> <span> This deal is exclusively for Amazon Prime members. </span> </div>\\n<div> <div>\\n<span><span><input/><span> Join Prime </span></span></span> </div>\\n<div> <span>Cancel anytime</span> </div> </div> <div> <span> Already a member? </span>  Sign in  </div> </div> </div>\\n<div>\\n<div> <div> <div> <div>\\n<div>\\n<div>\\n<div>\\n<span>Ships from</span> </div>\\n</div>\\n<div>\\n<div>\\n<span>Amazon.com</span> </div>\\n<span>  Amazon.com  </span> <div> <div> <div> <span>Ships from</span> </div> <div>    Amazon.com    </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Sold by</span> </div>\\n</div>\\n<div>\\n<div>\\n<span>Amazon.com</span> </div>\\n<span>  Amazon.com  </span> <div> <div> <div> <span>Sold by</span> </div> <div>    Amazon.com    </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Returns</span> </div>\\n</div>\\n<div>\\n<span>  30-day refund/replacement  </span> <div> <div> <div> <span>30-day refund/replacement</span> </div> <div>    This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.    </div> <div>  Read full return policy  </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Payment</span> </div>\\n</div>\\n<div>\\n<span>  Secure transaction  </span> <div> <div> <div> <span>Your transaction is secure</span> </div> <div>    We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others.        Learn more  </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Support</span> </div>\\n</div>\\n<div>\\n<span>  Product support included  </span> <div> <div> <div> <span>What\\'s Product Support?</span> </div> <div>    In the event your product doesn\\'t work as expected or you need help using it, Amazon offers free product support options such as live phone/chat with an Amazon associate, manufacturer contact information, step-by-step troubleshooting guides, and help videos. \\nBy solving product issues, we help the planet by extending the life of products. Availability of support options differ by product and country.         Learn more  </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Packaging</span> </div>\\n</div>\\n<div>\\n<span>  Ships in product packaging  </span> <div> <div> <div> <span>Ships in product packaging</span> </div> <div> <p>This item has been tested to certify it can ship safely in its original box or bag to avoid unnecessary packaging. Since 2015, we have reduced the weight of outbound packaging per shipment by 41% on average, that’s over 2 million tons of packaging material.</p><i>If you still require Amazon packaging for this item, choose \"Ship in Amazon packaging\" at checkout. </i>  Learn more  </div> </div> </div> </div> </div>\\n</div>\\n</div> <div> <div>See more</div> </div> </div> </div> </div>\\n</div> </div></div></div></div></div></div></div></div></div></div></div></div></div></div></body></html>', \"<html><body><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><form><div><div><div>\\n<div>\\n<div> <span> <div> <div>\\n<span><label>Quantity:</label><select> <option>1 </option> <option>2 </option> <option>3 </option> <option>4 </option> <option>5 </option> <option>6 </option> <option>7 </option> <option>8 </option> <option>9 </option> <option>10 </option> <option>11 </option> <option>12 </option> <option>13 </option> <option>14 </option> <option>15 </option> <option>16 </option> <option>17 </option> <option>18 </option> <option>19 </option> <option>20 </option> <option>21 </option> <option>22 </option> <option>23 </option> <option>24 </option> <option>25 </option> <option>26 </option> <option>27 </option> <option>28 </option> <option>29 </option> <option>30 </option> </select><span><span><span><span>Quantity:</span><span>1</span></span></span></span></span> </div> </div> <span><input/><span> Buy Now </span></span></span> <div><div> <span> Enhancements you chose aren't available for this seller. </span> <span>  Details  </span> <div> <div> <div> <div> <span> To add the following enhancements to your purchase, choose a different seller. </span> </div> <div> <span>%cardName%</span> </div> </div> </div> </div> </div></div></div> <span> <span><span><input/><span>Add to Cart</span></span></span> </span></div> <input/><div> <div> <span>$</span><span><span><span>$79.99</span><span><span>79<span>.</span></span><span>99</span></span></span></span> <span> \\n                    ()\\n            </span> <span> Includes selected options. </span> <span> Includes initial monthly payment and selected options. </span> <span> <span> <span>\\n Details  </span>\\n</span> <div> <div> <div> <div> <div><div> <div> <span>Price</span> <span> <span> <span> (</span><span>$</span><span>79<span>.</span></span><span>99</span><span>x)</span> </span> </span> </div> <div> <span> <span> <span>$</span><span>79<span>.</span></span><span>99</span> </span> </span> </div> </div></div> </div> <div> <div><div> <div> <span>Subtotal</span> </div> <div> <span> <span>$</span><span><span><span>$79.99</span><span><span>79<span>.</span></span><span>99</span></span></span></span> </span> </div> </div></div> <div><div> <div> <span>Subtotal</span> </div> </div></div> <div> <div> <span>Initial payment breakdown</span> </div> </div> <div> <span>Shipping cost, delivery date, and order total (including tax) shown at checkout.</span>\\n</div> </div> </div> </div> </div> </span> </div> </div></div></div></div></form></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></body></html>\", '<html><body><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><form><div><div><div>\\n<div> <div> <div> <div>\\n<div>\\n<div>\\n<div>\\n<span>Ships from</span> </div>\\n</div>\\n<div>\\n<div>\\n<span>Amazon.com</span> </div>\\n<span>  Amazon.com  </span> <div> <div> <div> <span>Ships from</span> </div> <div>    Amazon.com    </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Sold by</span> </div>\\n</div>\\n<div>\\n<div>\\n<span>Amazon.com</span> </div>\\n<span>  Amazon.com  </span> <div> <div> <div> <span>Sold by</span> </div> <div>    Amazon.com    </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Returns</span> </div>\\n</div>\\n<div>\\n<span>  30-day refund/replacement  </span> <div> <div> <div> <span>30-day refund/replacement</span> </div> <div>    This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.    </div> <div>  Read full return policy  </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<div>\\n<div>\\n<span>Packaging</span> </div>\\n</div>\\n<div>\\n<span>  Ships in product packaging  </span> <div> <div> <div> <span>Ships in product packaging</span> </div> <div> <p>This item has been tested to certify it can ship safely in its original box or bag to avoid unnecessary packaging. Since 2015, we have reduced the weight of outbound packaging per shipment by 41% on average, that’s over 2 million tons of packaging material.</p><i>If you still require Amazon packaging for this item, choose \"Ship in Amazon packaging\" at checkout. </i>  Learn more  </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Payment</span> </div>\\n</div>\\n<div>\\n<span>  Secure transaction  </span> <div> <div> <div> <span>Your transaction is secure</span> </div> <div>    We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others.        Learn more  </div> </div> </div> </div> </div>\\n<div>\\n<div>\\n<div>\\n<span>Support</span> </div>\\n</div>\\n<div>\\n<span>  Product support included  </span> <div> <div> <div> <span>What\\'s Product Support?</span> </div> <div>    In the event your product doesn\\'t work as expected or you need help using it, Amazon offers free product support options such as live phone/chat with an Amazon associate, manufacturer contact information, step-by-step troubleshooting guides, and help videos. \\nBy solving product issues, we help the planet by extending the life of products. Availability of support options differ by product and country.         Learn more  </div> </div> </div> </div> </div>\\n</div>\\n</div>\\n</div>\\n</div> <div> <div>See more</div> </div> </div> <label><input/><span>Add a gift receipt for easy returns</span></label></div> </div></div></div></form> \\n</div><span>Instant Pot Duo</span></div></div></div>\\n</div>\\n</div>\\n</div>  \\xa0 Report an issue with this product or seller<h4>Product voltage: 120</h4></div> <span> <span>8K+ bought</span><span> in past month</span> </span>Brief content visible, double tap to read full content.</div>  Visit the Instant Pot Store \\n  <ul> <li><span> 7-IN-1 FUNCTIONALITY: Pressure cook, slow cook, rice cooker, yogurt maker, steamer, sauté pan and food warmer.  </span></li> <li><span> QUICK ONE-TOUCH COOKING: 13 customizable Smart Programs for pressure cooking ribs, soups, beans, rice, poultry, yogurt, desserts and more.  </span></li> <li><span> COOK FAST OR SLOW: Pressure cook delicious one-pot meals up to 70% faster than traditional cooking methods or slow cook your favorite traditional recipes – just like grandma used to make.  </span></li> <li><span> QUICK AND EASY CLEAN UP: Finger-print resistant, stainless-steel sides and dishwasher-safe lid, inner pot, and accessories.  </span></li> <li><span> SAFETY FEATURES: Includes over 10 safety features, plus overheat protection and safe-locking lid  </span></li> <li><span> GREAT FOR GROWING FAMILIES: Cook for up to 6 people – perfect for growing families, or meal prepping and batch cooking for singles.  </span></li> <li><span> VERSATILE INNER COOKING POT: We use food-grade stainless-steel, a tri-ply bottom for more even cooking and perfect for sautéing  </span></li> <li><span> DISCOVER AMAZING RECIPES: Includes the free Instant Brands Connect App, where you can find new recipes to create quick favorites and prepare delicious meals, available for iOS and Android.  </span></li> </ul><div> <span>›</span>  See more product details  </div> <div><div> <div> Instant Pot RIO, 7-in-1 Electric Multi-Cooker, PressureCooker, SlowCooker, RiceCooker, Steamer, Sauté, Yogurt Maker, &amp; Warmer, Includes App With Over 800 Recipes, 6 Quart  <span>$94.95</span>    (2,374)  <span>In Stock</span> </div> </div></div></div></div><h2>\\n            Discover similar items</h2></div></div></div></div></div></body></html>', '<html><body><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div> <h4>\\n Color  \\n \\n Capacity  \\n \\n Grade  \\n \\n Power  \\n \\n Heat Source  \\n \\n Material  \\n \\n Slow Cooker Type  \\n \\n Brand  \\n \\n Closure  \\n \\n Width  \\n \\n Finish  \\n \\n Control Type  \\n \\n Free From  \\n \\n Heating Elements  \\n \\n Heating Type  \\n \\n Depth  \\n \\n Premium Brands  \\n \\n Output Wattage  \\n \\n Features  \\n \\n Uses  \\n \\n Inclusions  \\n \\n Height  \\n \\n Length  \\n \\n Lid Material  \\n \\n Shape  \\n \\n Top Brands in Home &amp; Kitchen  \\n \\n Style  \\n </h4>\\n<div> <div> <span>\\n<span> <span><span><input/><span>\\n<span>Black</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Grey</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>White</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Brown</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Beige</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Red</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Pink</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Orange</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Yellow</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Ivory</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Green</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Blue</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Purple</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Gold</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Silver</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Multi</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><input/><span>\\n<span>Clear</span> </span></span></span> </span> </span>\\n<span>\\n<span> <span><span><span>\\n<span>Stainless Steel</span> </span></span></span> </span> </span>\\n</div> </div> <span> <button>\\n<span>Clear Filters</span> </button>\\n</span></div></div></div></div></div></div>\\n</div>\\n<span> <span><span><span> <span>\\n<span>Black</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span>\\n<span>Grey</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Capacity: Up to 2.99 L</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Capacity: 3 to 4.99 L</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Grade: Commercial Grade</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Power: Up to 1499 W</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Power: 1500 to 1599 W</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Heat Source: Gas</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Heat Source: Electric</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Material: Aluminum</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Material: Stainless Steel</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Slow Cooker Type: Manual</span>\\n</span>\\n</span></span></span> </span><span> <span><span><span> <span> <span>Slow Cooker Type: Programmable</span>\\n</span>\\n</span></span></span> </span></div></div>\\n</div></div></div></div></div></div></div></body></html>', \"<html><body><div><div><div><div>\\n<div><div> <hr/> <div> <div><div><h2>Deals on related products</h2> <div> <div> <span>                    Sponsored                            </span> </div> </div> </div><div><span><span>Page <span>1</span> of <span>1</span></span><span>Start over</span></span></div></div> <div> <div><div><div>Previous page of related Sponsored Products</div><div><div><ol> <li> <div> <div> <div> <span> Feedback </span> </div> </div> <div>              CHEF iQ Smart Pressure Cooker with WiFi and Built-in Scale - Easy-to-Use 10-in-1 Mu...  </div> <div>   2,645  </div>       With Prime    <div>  -30%$139.98$139.98List Price:$199.99$199.99  </div> </div> </li> <li> <div> <div> <div> <span> Feedback </span> </div> </div> <div>              Hamilton Beach 3-in-1 Electric Egg Cooker for Hard Boiled Eggs, Poacher Eggs, Omele...  </div> <div>   5,209  </div> <div>   Amazon's\\xa0Choice   </div>       Limited time deal    <div>  -19%$16.98$16.98List:$20.95$20.95  </div> </div> </li> <li> <div> <div> <div> <span> Feedback </span> </div> </div> <div>              CUCKOO CRP-ST1009FW 10-Cup (Uncooked) / 20-Cup (Cooked) Twin Pressure Rice Cooker &amp;...  </div> <div>   366  </div>       With Prime    <div>  -31%$239.99$239.99List Price:$349.99$349.99  </div> </div> </li> <li> <div> <div> <div> <span> Feedback </span> </div> </div> <div>              Pizza Oven Indoor, Countertop Electric Pizza Maker 12-inch, 2-minute Pizza, 6 Prese...  </div> <div>   12  </div>       Limited time deal    <div>  -15%$169.99$169.99List:$199.99$199.99  </div> </div> </li> <li> <div> <div> <div> <span> Feedback </span> </div> </div> <div>              WantJoin Pressure Cooker, 8 Quart Stainless Steel Pressure Canner, Induction Compat...  </div> <div>   947  </div> <div>   Amazon's\\xa0Choice   </div>       Limited time deal    <div>  -10%$80.89$80.89List:$89.99$89.99  </div> </div> </li> <li> <div> <div> <div> <span> Feedback </span> </div> </div> <div>              CUCKOO CR-0675FW 6-Cup (Uncooked) / 12-Cup (Cooked) Micom Rice Cooker with Nonstick...  </div> <div>   3,644  </div> <div>   Amazon's\\xa0Choice   </div>       With Prime    <div>  -27%$79.99$79.99List Price:$109.99$109.99  </div> </div> </li> <li> <div> <div> <div> <span> Feedback </span> </div> </div> <div>              CUCKOO CR-0633F | 6-Cup (Uncooked) Micom Rice Cooker | 11 Menu Options: White Rice,...  </div> <div>   2,689  </div>       With Prime    <div>  -31%$89.99$89.99List Price:$129.99$129.99  </div> </div> </li> </ol></div></div><div>Next page of related Sponsored Products</div></div></div> </div> </div>\\n<div><h2>\\n                                        Product information </h2></div></div></div> </div></div></div></div></body></html>\", '<html><body><div><div><div><div><div><div><div><div><div><div><div> <div> <div> <table> <tr> <th> Brand </th> <td> Instant Pot </td> </tr> <tr> <th> Capacity </th> <td> 5.68 Liters </td> </tr> <tr> <th> Material </th> <td> Stainless steel </td> </tr> <tr> <th> Finish Type </th> <td> Stainless Steel </td> </tr> <tr> <th> Product Dimensions </th> <td> 12.2\"D x 13.38\"W x 12.48\"H </td> </tr> <tr> <th> Special Feature </th> <td> Programmable </td> </tr> <tr> <th> Wattage </th> <td> 1000 watts </td> </tr> <tr> <th> Item Weight </th> <td> 11.8 Pounds </td> </tr> <tr> <th> Control Method </th> <td> Touch </td> </tr> <tr> <th> Controller Type </th> <td> Push Button </td> </tr> <tr> <th> Operation Mode </th> <td> Automatic </td> </tr> <tr> <th> Is Dishwasher Safe </th> <td> Yes </td> </tr> <tr> <th> Voltage </th> <td> 120 Volts </td> </tr> <tr> <th> Closure Type </th> <td> Outer Lid, Inner Lid </td> </tr> <tr> <th> UPC </th> <td> 810028585201 </td> </tr> <tr> <th> Item Weight </th> <td> 11.8 pounds </td> </tr> <tr> <th> Manufacturer </th> <td> Instant Pot </td> </tr> <tr> <th> ASIN </th> <td> B00FLYWNYQ </td> </tr> <tr> <th> Country of Origin </th> <td> China </td> </tr> <tr> <th> Item model number </th> <td> 112-0170-01 </td> </tr> <tr> <th>Customer Reviews</th> <td> <div>\\n<span> <span>\\n<span>   4.6  4.6 out of 5 stars  </span> </span>\\n</span> <span>  130,203 ratings  </span>\\n</div>\\n 4.6 out of 5 stars </td> </tr> <tr> <th> Best Sellers Rank </th> <td> <span> <ul> <li><span><span>#27 in Kitchen &amp; Dining (See Top 100 in Kitchen &amp; Dining)</span></span></li> <li><span><span>#1 in Electric Pressure Cookers</span></span></li> <li><span><span>#2 in Rice Cookers</span></span></li> </ul> </span> </td> </tr> <tr> <th> Is Discontinued By Manufacturer </th> <td> No </td> </tr> <tr> <th> Date First Available </th> <td> December 2, 2013 </td> </tr> </table> </div> <h3> Warranty &amp; Support </h3><div>    Other content Manual<span> [PDF ] </span>User Guide Manual<span> [PDF ] </span>Product Warranty: For warranty information about this product, please click here.<span> [PDF ] </span> </div></div> </div></div></div>Brief content visible, double tap to read full content. <div>\\nSafety Information (PDF)\\n</div><div>\\nUser Manual (PDF)\\n</div><div>\\nUser Guide (PDF)\\n</div><h2>Compare with similar items</h2></div> <div>\\n<p> <span>Easy to use, easy to clean, fast, versatile, and convenient, the Instant Pot® Duo™ is the one that started it all. It replaces 7 kitchen appliances: pressure cooker, slow cooker, rice cooker, steamer, sauté pan, yogurt maker &amp; warmer. With 13 built-in smart programs, cook your favorite dishes with the press of a button. The tri-ply, stainless steel inner pot offers quick, even heating performance. Redefine cooking and enjoy quick and easy meals anywhere, any time. The Instant Pot Duo offers the quality, convenience and versatility you’ve come to expect from Instant – discover amazing.</span> </p> </div></div> <div> <div> <div><div> <div> <span>Highly Rated</span> </div> <div> <span>100K+ customers rate items from this brand highly</span> </div> </div></div> </div> <div> <div><div> <div> <span>Trending</span> </div> <div> <span>100K+ orders for this brand in past 3 months</span> </div> </div></div> </div> <div> <div><div> <div> <span>Low Returns</span> </div> <div> <span>Customers usually keep items from this brand</span> </div> </div></div> </div> </div></div></div></div></div></div></div></body></html>', '<html><body><div><div><div><div><div><div><div><div><div><table><tr><td><div><div><span>This Item</span></div><span><span>Buying options</span></span></div><div><div><span>Instant Pot\\xa0</span><span>Duo 7-in-1 Electric Pressure Cooker, Slow Cooker, Rice Cooker, Steamer, Sauté, Yogurt Maker, Warmer &amp; Sterilizer, Includes App With Over 800 Recipes, Stainless Steel, 6 Quart</span></div></div><span>Price</span><span>Delivery</span><span>Customer Ratings</span><span>Sold By</span><span>capacity</span><span>operation mode</span><span>control method</span><span>material</span><span>dishwasher safe</span></td><td><div><div><span>Recommendations</span></div></div><div>Instant Pot\\xa0Duo Crisp 11-in-1 Air Fryer and Electric Pressure Cooker Combo with Multicooker Lids that Air Fries, Steams, Slow Cooks, Sautés, Dehydrates, &amp; More, Free App With Over 800 Recipes, 6 Quart</div></td><td><div>carori\\xa0CARORI 9-in-1 Electric Pressure Cooker 6 Qt, Programmable Multi-Function Cooker with Safer Vent, Olla de Presion, Rice Cooker, Slow Cooker, Steamer, Sauté, Warmer &amp; Sterilizer, 1000W, Stainless Steel</div></td><td><div>Midea\\xa012-in-1 Electric Pressure Cooker, 8 Quarts, 12 Presets, Multi-Functional Programmable Slow Cooker, Rice Cooker, Steamer, Sauté Pan, Yogurt Maker, and More, Stainless Steel</div></td></tr></table><h2>Products related to this item</h2><div> <div> <span>                    Sponsored                            </span> </div> </div><div><h2>Similar brands on Amazon</h2></div><span>\\n<div>\\n<div><div><div><div><h2>Customer reviews</h2></div><div><div><div><i><span>4.6 out of 5 stars</span></i></div><div><div><span><span>4.6 out of 5</span></span></div></div></div></div><div><span>130,203 global ratings</span></div><div><div><div><ul><li><span>5 star4 star3 star2 star1 star5 star83%10%3%1%3%83%</span></li><li><span>5 star4 star3 star2 star1 star4 star83%10%3%1%3%10%</span></li><li><span>5 star4 star3 star2 star1 star3 star83%10%3%1%3%3%</span></li><li><span>5 star4 star3 star2 star1 star2 star83%10%3%1%3%1%</span></li><li><span>5 star4 star3 star2 star1 star1 star83%10%3%1%3%3%</span></li></ul></div></div></div><div><div><div><div>How customer reviews and ratings work<div><p>Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.</p><p>To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.</p>Learn more how customers reviews work on Amazon</div></div></div></div></div></div></div></div>\\n</div></span><div><h3>Review this product</h3><div>Share your thoughts with other customers</div><div><span><span>Write a customer review</span></span></div></div><div><div><div><div><div><div><div><div><h3>Customers say</h3></div><p><span>Customers find the pressure cooker works well, particularly praising its sauté feature and accurate cooking times. They appreciate its ease of use, with one customer noting the intuitive controls, and consider it a great kitchen appliance that makes meal prep convenient. The appliance receives positive feedback for its cooking ability, with one customer highlighting its versatility in transforming into a pressure cooker, and customers find it easy to clean with a stainless steel pot that cleans well. Customers enjoy the complex flavors produced, though opinions on build quality are mixed, with some finding it well-made while others describe it as wimpy.</span></p><p><span>AI Generated from the text of customer reviews</span></p></div></div></div></div></div></div></div><div><div><div><div><div><div><div><div><div><div><div><div><h4>Select to learn more</h4></div><div>Works wellEase of useCook timeAppliance qualityCooking abilityEase of cleaningFlavorBuild quality</div></div></div></div></div></div></div></div></div></div></div></div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><span>8,039 customers mention \"Works well\"</span><span>6,939 positive</span><span>1,100 negative</span></div></div></div><div><div><p>Customers find that the pressure cooker works well, with the sauté feature performing particularly effectively.</p></div></div><div><div><p>\"...This <b>works with new potatoes</b>, and regular potatoes! Happy Instant Potting!\" Read more</p></div></div><div><div><p>\"...<b>It was excellent</b>. I did 6 minutes per pound + 2 minutes. I also cook chicken thighs for dinner about once a week, which I had never cooked before....\" Read more</p></div></div><div><div><p>\"...Most <b>programs work just fine on full automatic</b>, but some small exceptions may demand more online flexibility....\" Read more</p></div></div><div><div><p>\"...occasional mishaps, the Instant Pot Duo has consistently <b>delivered incredible results</b>....\" Read more</p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><hr/></div></div></div></div></div></div></body></html>', '<html><body><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><span>7,651 customers mention \"Ease of use\"6,666 customers mention \"Cook time\"5,399 customers mention \"Appliance quality\"4,396 customers mention \"Cooking ability\"3,065 customers mention \"Ease of cleaning\"2,827 customers mention \"Flavor\"2,273 customers mention \"Build quality\"</span><span>6,651 positive</span><span>1,000 negative</span>Amazon Customer<i><span>5 out of 5 stars</span></i>MoreHide</div><h5>This has changed the way we eat. It\\'s easier to use than I thought it would be.</h5></div></div><div><div><p>Customers find the pressure cooker simple to use, with clear operating instructions in the booklet, making meal preparation a breeze.</p></div></div><div><div><p>\"...make in your Instant Pot that will change your life: <b>incredibly easy perfectly poached eggs</b> in 2-3 minutes, and baked potatoes in 12 minutes....\" Read more</p></div></div><div><div><p>\"...credit as most automatic settings work well, automating it for <b>ease of use</b> and safety. Cooking is part Science, but, I think, more Art than Science....\" Read more</p></div></div><div><div><p>\"...crockpot extensively over the past years and while I appreciate the <b>ease of use</b> and the ability to put a meal on the table soon after I got home in...\" Read more</p></div></div><div><div><p>\"...of pressure cookers anymore, the time , energy bills saved n <b>convenience is worth it</b>!...\" Read more</p></div></div></div>Sorry we couldn\\'t load the review</div><span><div><div><div>Thank you for your feedback</div><button>Close</button></div></div></span><span><div><div><div>Sorry, there was an error</div><button>Close</button></div></div></span></div><h3>Reviews with images</h3><button><span>All photos</span></button></div></div></div>\\n                        View Image Gallery\\n</div></div></div><span><div><div><div><h3>\\n  Top reviews from the United States\\n</h3></div></div></div></span><span><div><div><div><div><div><div><h4>There was a problem filtering reviews. Please reload the page.</h4></div></div></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div>Anne P. Mitchell</div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><h5>5.0 out of 5 stars\\nI LOVE My Instant Pot!  But Here\\'s What I Wish I\\'d Known when I First Got It\\n</h5></div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><span>Reviewed in the United States on April 16, 2016</span></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><span>Size: 6 Quarts</span>Verified Purchase</div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><span><div><div><span><br/></span></div></div></span></div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><span><div><div>Read more</div></div></span></div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><span>\\n<div><span>30,251 people found this helpful</span></div>\\n<div>\\n<span><span>\\n              Helpful\\n</span></span></div>\\n</span><span>\\n<span><span>Report</span></span></span>\\n</div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div>Aundrea</div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><h5>5.0 out of 5 stars\\nThis has changed the way we eat. It\\'s easier to use than I thought it would be.\\n</h5></div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><span>Reviewed in the United States on August 18, 2016</span></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><div><div><div>\\n<div>\\nAundrea\\n</div>\\n<i><span>5.0 out of 5 stars</span></i>\\n<h5>\\n                This has changed the way we eat. It\\'s easier to use than I thought it would be.\\n            </h5>\\n<span>\\n                                    Reviewed in the United States on August 18, 2016\\n                </span>\\n</div></div></div></div></div></div></span></li></ul></div></div></div></div></span><span><div><div><div><div><ul><li><span><div><div><div><div><div><span><br/></span></div></div></div></div></div></span></li></ul></div></div></div></div></span></div></div></div></div></div></div></div></div></div></div></div></div></body></html>', \"<html><body><div><div><div><div><div><div><div><div><div><div><div><div><span><div><div><div><div><ul><li><span><div><div><div><div><div><div>\\n<h6>\\n                Images in this review\\n            </h6>\\n</div></div></div><span>\\n<div><span>5,558 people found this helpful</span></div>\\n<div>\\n<span><span>\\n              Helpful\\n</span></span></div>\\n</span>\\n</div></div></div></span></li></ul>See more reviews</div></div></div></div><span><div>\\n<h3>\\n          Top reviews from other countries\\n    </h3>\\n<div>\\n<div><span><span><span>Translate all reviews to English</span></span></span>\\n</div>\\n</div>\\n</div></span><span><div><div><ul><li><span>\\n<div><div>\\n<div><div><div><span>Alheny</span></div></div></div><div><h5><i><span>5.0 out of 5 stars</span></i><span>\\n<span>Excelente</span>\\n</span></h5></div><span>Reviewed in Mexico on June 4, 2025</span><div><span>Size: 6 Quarts</span>Verified Purchase</div><div><span>\\n<div><div>\\n<span>Excelente producto, la recomiendo totalmente, facilita el trabajo en la cocina</span>\\n</div><div>Read more</div></div></span></div><div><span>\\n<span><span>Report</span></span></span>\\n<div><span>Translate review to English</span></div></div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><div><div><span>NeuroEmergent</span></div></div></div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><h5><i><span>5.0 out of 5 stars</span></i><span>\\n<span>A truly Canadian innovation - Instant Pot is the best item in my kitchen, hands down</span>\\n</span></h5></div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><span>Reviewed in Canada on November 23, 2017</span></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><span>Size: 6 Quarts</span>Verified Purchase</div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><span><div><div>Read more</div></div></span></div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><div><div><div>\\n<div>\\n<div><div><span>NeuroEmergent</span></div></div>\\n</div>\\n<i><span>5.0 out of 5 stars</span></i>\\n<h5>\\n                A truly Canadian innovation - Instant Pot is the best item in my kitchen, hands down\\n            </h5>\\n<span>\\n                                    Reviewed in Canada on November 23, 2017\\n                </span>\\n</div></div></div></div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><div><div><span><br/></span></div></div></div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><div><div><div>\\n<h6>\\n                Images in this review\\n            </h6>\\n</div></div></div></div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div><div><span>\\n<span><span>Report</span></span></span>\\n</div></div></div></span></li></ul></div></div></span><span><div><div><ul><li><span><div><div>\\n<div><div><div><span>MV</span></div></div></div><div><h5><i><span>5.0 out of 5 stars</span></i><span>\\n<span>3 Qt Instant Pot. LOVE IT!!!</span>\\n</span></h5></div><span>Reviewed in Canada on December 25, 2024</span><div><span>Size: 3 Quarts</span>Verified Purchase</div><div><span><div><div>\\n<span>My main cooking appliance. Uses only 675 watts max to build pressure, then mostly 0 watts under pressure but occasionally spiking back to 675 watts to keep the pressure. 3 Qts is a great size for 1 or 2 people, or even more depending on what you are cooking. Takes some practice, reading the manual and recipe guide and trial and error to tweak preferred times. It will even boil a pot of water like a kettle, which I tried as a test but forgot to time it. Fantastic appliance for off grid energy efficiency and used far more than the induction hot plate. So far nothing it hasn't cooked. Also extremely safe with the On Off and delay timers and turns off if it were to boil dry, unlike a gas stove which could burn down your house. Can't tell you how I know that. Fantastic for seniors for safety if they can get over all the preset buttons which are not needed anyway and just learn to use the few buttons and functions required to cook almost anything. Highly Recommended.</span>\\n</div><div>Read more</div></div></span></div><div><span>\\n<span><span>Report</span></span></span>\\n</div></div></div></span></li></ul></div></div></span></span></div></div></div></div></div></div></div></div></div></div></div></div></body></html>\", '<html><body><div><div><div><div><div><div><div><div><div><div><div><div><span><span><div><div><ul><li><span>\\n<div><div>\\n<div><div><div><span>Laissan sayab perez</span></div></div></div><div><h5><i><span>5.0 out of 5 stars</span></i><span>\\n<span>Gran inversión para la cocina</span>\\n</span></h5></div><span>Reviewed in Mexico on March 30, 2025</span><div><span>Size: 3 Quarts</span>Verified Purchase</div><div><span><div><div>\\n<span>Gran inversión para la cocina, soy una persona muy ocupada y me gusta cuidar de mi salud me cocino, pero en los guisos y cocciones de frijoles se consume mucho gas , opté por esta olla que vi,  ya hice mi primer caldo de res con verduras quedó la carne muy suave en poco tiempo ⏱️ me encantó, tiene muy buena seguridad para la presión.Lo que me encanta:✔️ Cocina mucho más rápido que una olla convencional.✔️ Tiene varias funciones, desde cocción a presión hasta salteado.✔️ Es segura y fácil de limpiar.Lo que podría mejorar:🔹 La curva de aprendizaje puede ser un poco alta al inicio, pero una vez que entiendes los tiempos y funciones, todo es sencillo.En general, es una excelente compra si quieres ahorrar tiempo en la cocina y hacer recetas deliciosas sin complicaciones. ¡La recomiendo totalmente!</span>\\n</div><div>Read more</div></div></span></div><div>\\n<div>\\n<div>\\n<div>\\n<div>\\n<div><div><span>Laissan </span></div></div>\\n</div>\\n<i><span>5.0 out of 5 stars</span></i>\\n<h5>\\n                Gran inversión para la cocina\\n            </h5>\\n<span>\\n                                    Reviewed in Mexico on March 30, 2025\\n                </span>\\n</div>\\n<span>\\n            Gran inversión para la cocina, soy una persona muy ocupada y me gusta cuidar de mi salud me cocino, pero en los guisos y cocciones de frijoles se consume mucho gas , opté por esta olla que vi,  ya hice mi primer caldo de res con verduras quedó la carne muy suave en poco tiempo ⏱️ me encantó, tiene muy buena seguridad para la presión.<br/>Lo que me encanta:✔️ Cocina mucho más rápido que una olla convencional.✔️ Tiene varias funciones, desde cocción a presión hasta salteado.✔️ Es segura y fácil de limpiar.Lo que podría mejorar:🔹 La curva de aprendizaje puede ser un poco alta al inicio, pero una vez que entiendes los tiempos y funciones, todo es sencillo.En general, es una excelente compra si quieres ahorrar tiempo en la cocina y hacer recetas deliciosas sin complicaciones. ¡La recomiendo totalmente!\\n</span>\\n<div>\\n<h6>\\n                Images in this review\\n            </h6>\\n</div>\\n</div>\\n</div>\\n</div>\\n<div><span>\\n<span><span>Report</span></span></span>\\n<div><span>Translate review to English</span></div></div></div></div></span></li><div>See more reviews</div></ul></div></div></span></span></div></div></div></div></div></div></div>\\nGet to Know Us</div></div></div> <div> <div> <div> Your recently viewed items and featured recommendations </div> <div> <div> <div> <div> › </div> <div>  View or edit your browsing history  </div> </div> <span> After viewing product detail pages, look here to find an easy way to navigate back to pages you are interested in. </span> </div> </div> </div> </div></div></div></body></html>']\n",
      "Using Hugging Face reranker for classification.\n",
      "Scores for passages: [0.6365740895271301, 0.42525428533554077, 0.16477522253990173, 0.33392345905303955, 0.2433975487947464, 0.27956345677375793, 0.3777231276035309, 0.49405714869499207, 0.6539114713668823, 0.5250579714775085, 0.3064478635787964]\n",
      "top indices: [8, 0, 9]\n",
      "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n",
      "Final output: {'productTitle': 'Instant Pot Duo 7-in-1 Electric Pressure Cooker, Slow Cooker, Rice Cooker, Steamer, Sauté, Yogurt Maker, Warmer & Sterilizer, Includes App With Over 800 Recipes, Stainless Steel, 6 Quart', 'price': 'N/A', 'manufacturer': 'Instant Pot'}\n",
      "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "{'productTitle': 'Instant Pot Duo 7-in-1 Electric Pressure Cooker, Slow Cooker, Rice Cooker, Steamer, Sauté, Yogurt Maker, Warmer & Sterilizer, Includes App With Over 800 Recipes, Stainless Steel, 6 Quart',\n",
       " 'price': 'N/A',\n",
       " 'manufacturer': 'Instant Pot'}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pipe.run(content=url,is_url=True, schema=schema, hf=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "371f7a17",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}