有自己网站做淘宝客赚钱吗,广告公司制作公司,搜索引擎推广实训,嘉兴市做外贸网站的我想得到amazon的类别#xff0c;我计划废弃不用API。我已经取消了http://www.amazon.com#xff0c;我已经在Shop By Department下拉列表中抓取了所有的类别和子类别#xff0c;我创建了一个web服务来完成这项工作#xff0c;代码就在这里route(/hello)def hello():textli…我想得到amazon的类别我计划废弃不用API。我已经取消了http://www.amazon.com我已经在Shop By Department下拉列表中抓取了所有的类别和子类别我创建了一个web服务来完成这项工作代码就在这里route(/hello)def hello():textlist();linklist();req urllib2.Request(http://www.amazon.com,headers{Content-Type: application/json})htmlurllib2.urlopen(req).read()soup BeautifulSoup(html)last_page soup.find(div, idnav_subcats)for elm in last_page.findAll(a):texts elm.textlinks elm.get(href)links links.partition(node)[2]text.append(texts)link.append(links)alltextlist();for i,j in zip(text,link):alltext.append({name:i,id:j})response.content_type application/jsonprint(alltext)return dumps(alltext)run(hostlocalhost, port8080, debugTrue)我将category name和category id作为JSON对象传递给我的一个成员以将其传递给API以获取每个类别的产品列表它是用文字写的爪哇。这里是密码吗^{pr2}$但是当我将类别id作为BrowseNodeId传递将类别名称作为关键字和搜索索引传递时会遇到此错误。在For exampleSearch Index and Keyword -Amazon Instant VideoBrowseNodeId-2858778011The value you specified for SearchIndex is invalid. Valid values include [ All,Apparel,...................................reless,WirelessAccessories ].我想知道从哪个亚马逊网址我将得到所有的类别和它的浏览节点谢谢你