gpt4 book ai didi

python - 亚马逊广告 API ItemSearch : Get more than 10 pages/100 results?

转载 作者:太空宇宙 更新时间:2023-11-04 01:33:56 25 4
gpt4 key购买 nike

我正在尝试为亚马逊广告 API (http://pypi.python.org/pypi/python-amazon-product-api/) 使用 Python 包装器,但是当我尝试执行 ItemSearch 并尝试访问第 11 页,我得到以下内容:

The value you specified for ItemPage is invalid. ... between 1 and 10

我知道为了避免这个问题,我可以执行另一个搜索查询,但是有没有办法在某个页面上启动搜索查询?或者有没有办法(对于书籍)设定出版年份的界限?我只需要一种方法,使我的搜索结果更小,这样我就不会遇到这个错误。现在我是这样调用它的:

results = api.item_search('Books', ResponseGroup='Images,Large', 
AssociateTag='qwerty', Publisher=kwd)

其中 kwd 只是从文件中获取的发布者名称。

最佳答案

亚马逊只会为您提供前 10 页(从 API 版本 2011-08-01 开始)。您可以运行略有不同的搜索以获得更多结果,但这些搜索也将仅限于前 10 页。

关于python - 亚马逊广告 API ItemSearch : Get more than 10 pages/100 results?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11556807/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com