| Line 178... |
Line 178... |
| 178 |
elif 'Li-Po' in batteryType:
|
178 |
elif 'Li-Po' in batteryType:
|
| 179 |
batteryType = 'lithium_metal'
|
179 |
batteryType = 'lithium_metal'
|
| 180 |
else:
|
180 |
else:
|
| 181 |
batteryType = ''
|
181 |
batteryType = ''
|
| 182 |
|
182 |
|
| - |
|
183 |
weight_parts = weight.split()
|
| - |
|
184 |
if len(weight_parts) > 1:
|
| - |
|
185 |
weight = weight_parts[0]
|
| - |
|
186 |
try:
|
| - |
|
187 |
float(weight)
|
| - |
|
188 |
except:
|
| - |
|
189 |
weight = ''
|
| - |
|
190 |
|
| 183 |
if size == "Not available" or size == '':
|
191 |
if size == "Not available" or size == '':
|
| 184 |
length, width, height = ["", "", ""]
|
192 |
length, width, height = ["", "", ""]
|
| 185 |
else:
|
193 |
else:
|
| 186 |
list = size.split()
|
194 |
list = size.split()
|
| 187 |
length, width, height = [list[0], list[2], list[4]]
|
195 |
length, width, height = [list[0], list[2], list[4]]
|
| Line 206... |
Line 214... |
| 206 |
[item.id, get_title(item), get_url(item), item.sellingPrice, "1", "803546031", stdProductId,\
|
214 |
[item.id, get_title(item), get_url(item), item.sellingPrice, "1", "803546031", stdProductId,\
|
| 207 |
stdProductIdType, "Wireless", tagline, '0', get_image_url(item), item.mrp, "TRUE",\
|
215 |
stdProductIdType, "Wireless", tagline, '0', get_image_url(item), item.mrp, "TRUE",\
|
| 208 |
item.brand, "", "", item.modelNumber, "", builtIn,\
|
216 |
item.brand, "", "", item.modelNumber, "", builtIn,\
|
| 209 |
ram, "", "", "", screenSize, screenResolution,\
|
217 |
ram, "", "", "", screenSize, screenResolution,\
|
| 210 |
screenType, "", "", "", "", "",\
|
218 |
screenType, "", "", "", "", "",\
|
| 211 |
cellularTechnology, opsys, talktime2G, standy2G, userInput, "",\
|
219 |
cellularTechnology, opsys,\
|
| - |
|
220 |
#talktime2G, standy2G, - use these values after converting them to minutes and hours respectively
|
| - |
|
221 |
'', '', userInput, "",\
|
| 212 |
formFactor, item.color, "", "1", "", warranty, "FALSE",\
|
222 |
formFactor, item.color, "", "1", "", warranty, "FALSE",\
|
| 213 |
batteryType, "TRUE","TRUE", "battery-powered", "TRUE",\
|
223 |
batteryType, "TRUE","TRUE", "battery-powered", "TRUE",\
|
| 214 |
"", weight, length, width, height, keywords[0], keywords[1], keywords[2], keywords[3],\
|
224 |
"", weight, length, width, height, keywords[0], keywords[1], keywords[2], keywords[3],\
|
| 215 |
keywords[4], "", "","","","",\
|
225 |
keywords[4], "", "","","","",\
|
| 216 |
"","","","","",\
|
226 |
"","","","","",\
|