def extract_data(product):
    """
    Extracts data from search result item
    """
    if not product or not isinstance(product, dict):
        return
    price = product.get('Price', {}).get('_value', None)
    data = {
        'service': 'yahoo',
        'currency': product.get(
            'Price', {}).get('_attributes', {}).get('currency', None),
        'price': price and int(price) or price,
        'image': product.get('Image', {}).get('Medium', None),
        'id': product.get('Code', None),
        # 'ProductId': product.get('ProductId', None),
        'DetailPageURL': product.get('Url', None),
        'Label': product.get('Description', None),
        'ProductGroup': product.get('Category', {}).get('Current', {}).get('Name', None),
        'Title': product.get('Name', None),
        'Manufacturer': product.get('Store', {}).get('Name', None),
        'images': [
            {'SmallImage': product.get('Image', {}).get('Small', None),
             'LargeImage': product.get('Image', {}).get('Medium', None)}],
        'CustomerReviews': product.get('Review', {}).get('Url', None),
        'ItemAttributes': [],
        'EditorialReview': [
            {'name': 'Description',
             'value': product.get('Description', None)}
        ],
    }
    return data