perhaps? 2016-08-25 20:15 采纳率: 100%
浏览 44

查找沃尔玛的搜索URL

I am building a search app that queries a couple of big companies including Walmart. As it happens, sending a GET request to "http://www.walmart.ca/search/lego%20avengers" does not work because there is A LOT (and I mean a lot) of JavaScript at work on the client-side. I did some debugging in Chrome, but I just can't find a server response that contains the search result data. It obviously is not materializing by itself so there has to be an AJAX call that is fetching the data in some format.

If anyone can solve this mystery - find the request that returns the data - I will bow down to your superior developer skills! :-)

  • 写回答

1条回答 默认 最新

  • lrony* 2016-08-25 20:22
    关注

    I would recommend making a call directly to their API.

    https://developer.walmartlabs.com/docs

    It provides items, price, and availability in real time. Much easier than trying to filter through the GET request you receive from entering a search.

    评论

报告相同问题?