Open krthush opened 3 years ago
https://stackoverflow.com/questions/21700573/get-asin-from-pasted-amazon-url seems to have some "easier" solutions
following regex works for the supported urls list
(?:dp|o|gp|-|gp\/product|\/ASIN|gp\/offer-listing|gp\/product\/images|gp\/aw\/d)\/(B[0-9]{2}[0-9A-Z]{7}|[0-9]{9}(?:X|[0-9]))
excluding the following 2 urls
implemented setup with 6df1800 and 8151be1, now waiting for registration from amazon associates, until further work can be done
see https://webservices.amazon.com/paapi5/documentation/
amazon id "can" be obtain from link, but can be tricky since doesn't seem like there is a consistent structure?
for example here the id is
B0140RDK8W
but both of the following links workhttps://www.amazon.com/gp/product/B0140RDK8W
https://www.amazon.com/dp/B0140RDK8W