Skip to content

Conversation

aplicacionamedida
Copy link

I added this method to AmazonProduct objects. Its an interesting method to discover other products:

    @property
    def similar_products(self):
        """SimlarProducts.

        :return:
            List Of ASIN Similar Products (list)
        """

        result = []
        similar_products = self._safe_get_element('SimilarProducts')
        if similar_product is not None:
            for similar_product in similar_products:
                result.append(similar_product.ASIN.text)
        return result

@aplicacionamedida
Copy link
Author

sorry I made a mistake. I have to change this string 'SimilarProducts' for this other string: "'SimilarProducts.SimilarProduct'". I will pull request again

@yoavaviram
Copy link
Owner

Thanks @aplicacionamedida , can you please run pep8 and submit again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants