3 ms·
You may want to do some "AND NOT" matching on the description, e.g. https://www.ebay.com/itm/235440904571 https://www.ebay.com/itm/235440904571 which has "title
by mdaniel 3y ago
You may want to do some "AND NOT" matching on the description, e.g.
https://www.ebay.com/itm/235440904571 https://www.ebay.com/itm/235440904571 which has "title_cleaned": "MSI RTX 3070 Ti Ventus 3X 8G OC" but the description is "MSI RTX 3070 Ti VENTUS 3X 8G OC Graphics Card Support Bracket"
And, up to you, but doing money math with floats is a well known road-to-ruin: "price_with_shipping": 18.990000000000002,
- AlexAndScripts 3y agoUnfortunately I can't access descriptions without another API call. Thanks for pointing out the floats issue. It'll probably be OK because I round to the nearest integer when displaying and only use the extra precision for sorting, but I might round to 2dp on the server side to avoid wasting bandwidth on all those zeroes - I presume floating point imprecision compresses poorly.
- reaperman 3y agohttps://en.wikipedia.org/wiki/Decimal_data_type https://en.wikipedia.org/wiki/Decimal_data_type decimal.Decimal in Python java.math.BigDecimal I don't know if there's an idiomatic way to use this datatype in JavaScript / Node.