ben-yeung / stock-Xtension

Chrome extension to quickly view StockX details of a sneaker to compare resell vs retail without leaving the product page
1 stars 0 forks source link

Support for FLX Footsites #2

Open ben-yeung opened 3 years ago

ben-yeung commented 3 years ago

The main problem is that these sites do not provide the style ids of specific shoe colorways consistently. These sites have their own product ids likely used for their own inventory sorting. The issue is that these ids do not always align with the style ids found on StockX

Current workaround strategy would be calling the api request with the query being Shoe Model + Colorway Name. This approach yields inconsistent results as shoes may have similar colorways (Black/Black/Black versus Black/White/Black sometimes swapped first few shoe results when returned by StockX api call or nothing is returned at all)

ben-yeung commented 3 years ago

If a solution is found this would allow support for FLX footsites such as Champs, Footlocker, Footaction, etc as they all run on similar structures for product pages.

ben-yeung commented 3 years ago

One interesting find so far is that FLX product IDs for Nikes and Jordans are missing the first character but the rest is identical. Most common instances are 'A' and 'C' needed to match style codes returned by StockX

Adidas product IDs seem to be consistent with the 6 character style code.

ben-yeung commented 3 years ago

Going off of this find one approach would be searching via shoe title then iterating through the first few results seeing if the style ids contain the id found on site. For Nike and Jordan identical models rely on the last 3 digits to determine colorway which could be useful in detecting the correct colorway.