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

The sort function in product_finder is not working #186

Open
kozasa opened this issue Dec 14, 2024 · 0 comments
Open

The sort function in product_finder is not working #186

kozasa opened this issue Dec 14, 2024 · 0 comments

Comments

@kozasa
Copy link

kozasa commented Dec 14, 2024

Hello,
The sort function in product_finder is not working.
I have written it in the source code below.
Is there an error in how it's written?
Thank you.
Library version is 1.3.10

try:
    product_parms = {
        "productType": 0,
        "sort": [
            ["current_SALES", "desc"],
        ],
        "current_SALES_gte": 2000,
        "current_COUNT_REVIEWS_gte": 0,
        "current_NEW_gte": 0,
        "categories_include": [category_no],
        "packageWeight_gte": 0,
        "itemDimension_gte": 0,
        "itemLength_gte": 0,
        "itemWidth_gte": 0,
        "itemHeight_gte": 0,
        "itemWeight_gte": 0,
        "page": 0,
        "perPage": 50,
        "buyBoxIsPreorder": False,
    }
    products = self.keepa.product_finder(product_parms=product_parms, domain="JP", n_products=50)
    return products
except Exception as e:
    print(e)
    return None
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

No branches or pull requests

1 participant