Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New method similar_productos() of AmazonProduct object #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants