serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
54 stars 5 forks source link

[Walmart Search API] Filters not Scraped, Even When `include_filters = true` #1101

Closed schaferyan closed 10 months ago

schaferyan commented 1 year ago

A customer reported we don't seem to be scraping the filters in Walmart Search, even if the include_filters parameter is set to true. It looks like possibly the parameter isn't getting applied correctly for some reason.

Screenshot 2023-09-18 at 6 00 32 PM

Playground | Intercom | Search Inspector

ilyazub commented 1 year ago

Related to https://github.com/serpapi/public-roadmap/issues/543

Facets are now in allSortAndFilterFacets.

Object.values(JSON.parse(document.querySelector(`script#__NEXT_DATA__`).textContent).props.pageProps.initialData.moduleDataByZone).find(({ type }) => type === "SearchSortFilterModule").configs.allSortAndFilterFacets
schaferyan commented 1 year ago

A customer whose use case a fix for this would support:

Intercom