I’m trying to get the ASIN of some Amazon items. I found a pattern: the ASIN is always after “/dp/”. How can I extract the ASIN (B003CP0V6S) from that string?
I’m using ruby
url = "http://www.amazon.it/Calvin-Klein-Deluxe-K0S21120--Orologio/dp/B003CP0V6S/ref=lp_1597641031_1_8?ie=UTF8&qid=1349983393&sr=1-8"
1 Answer