| Line 1701... |
Line 1701... |
| 1701 |
if transform:
|
1701 |
if transform:
|
| 1702 |
if mpu.find("snapdeal")!=-1:
|
1702 |
if mpu.find("snapdeal")!=-1:
|
| 1703 |
mpu = "http://m.snapdeal.com"+mpu[mpu.find("/product"):]
|
1703 |
mpu = "http://m.snapdeal.com"+mpu[mpu.find("/product"):]
|
| 1704 |
elif mpu.find("homeshop18")!=-1:
|
1704 |
elif mpu.find("homeshop18")!=-1:
|
| 1705 |
mpu = "http://m.homeshop18.com/product.mobi?productId="+item['identifier']
|
1705 |
mpu = "http://m.homeshop18.com/product.mobi?productId="+item['identifier']
|
| 1706 |
elif mpu.find("saholic.com")!=1:
|
1706 |
elif mpu.find("saholic.com")!=-1:
|
| 1707 |
mpu = "http://m.saholic.com"+mpu[mpu.find("/"):]
|
1707 |
mpu = "http://m.saholic.com"+mpu[mpu.find("/"):]
|
| 1708 |
elif mpu.find("shopclues.com")!=1:
|
1708 |
elif mpu.find("shopclues.com")!=-1:
|
| 1709 |
mpu = "http://m."+mpu[mpu.find("shopclues.com"):]
|
1709 |
mpu = "http://m."+mpu[mpu.find("shopclues.com"):]
|
| 1710 |
else:
|
1710 |
else:
|
| 1711 |
pass
|
1711 |
pass
|
| 1712 |
|
1712 |
|
| 1713 |
return {'marketPlaceUrl':mpu,'available_price':int(item.get('available_price')),'source_product_name':item.get('source_product_name'),'thumbnail':item.get('thumbnail'),'source_id':int(item.get('source_id'))}
|
1713 |
return {'marketPlaceUrl':mpu,'available_price':int(item.get('available_price')),'source_product_name':item.get('source_product_name'),'thumbnail':item.get('thumbnail'),'source_id':int(item.get('source_id'))}
|