Wei_Dai comments on Proposal: all Amazon hyperlinks get Less Wrong's Amazon Associates referral code - Less Wrong

32 Post author: lukeprog 26 January 2011 04:17PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (20)

You are viewing a single comment's thread.

Comment author: Wei_Dai 27 January 2011 06:39:43AM *  4 points [-]

It's not true that Amazon product URLs must contain "/dp/". According to http://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number , product URLs may have the following formats:

Which is not even a complete list because I've also seen:

Instead of trying to parse all these formats, I suggest just adding "?tag=lesswrong-20" or "&tag=lesswrong" (depending on whether the URL already contains a "?") to the end of every Amazon.com URL. Also, "ref=nosim" is obsolete and can be omitted.