Expose product title through amazon crawler
This commit is contained in:
parent
9ee12f7be3
commit
3e3d12c0c5
|
@ -18,7 +18,7 @@ class Command(BaseCommand):
|
||||||
item_id=product['shop_product_id'],
|
item_id=product['shop_product_id'],
|
||||||
shop__flag_code=region[0]
|
shop__flag_code=region[0]
|
||||||
)
|
)
|
||||||
amiibo_shop.shop_name = product.title
|
amiibo_shop.shop_name = product['title']
|
||||||
amiibo_shop.update_price(product['price'], product['currency'])
|
amiibo_shop.update_price(product['price'], product['currency'])
|
||||||
|
|
||||||
def handle(self, *args, **kwargs):
|
def handle(self, *args, **kwargs):
|
||||||
|
|
|
@ -45,6 +45,7 @@ class AmazonBaseCrawler(object):
|
||||||
'shop_product_id': product.asin,
|
'shop_product_id': product.asin,
|
||||||
'price': price,
|
'price': price,
|
||||||
'currency': currency,
|
'currency': currency,
|
||||||
|
'title': product.title,
|
||||||
})
|
})
|
||||||
sleep(1)
|
sleep(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue