SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 127 | Next

Raymond Yee

"Pro Web 2.0 Mashups: Remixing Data and Web Services"


Let??™s apply this approach to other functions of Amazon. For instance, can you generate
a URL for a full-text search? Go to Amazon, and enter your favorite search term. Take for
example, flower. When I hit Submit, I got the following URL:
http://amazon.com/s/ref=nb_ss_gw/102-1755462-2944952?url=search-alias%3Daps&fieldkeywords=
flower&Go.x=0&Go.y=0
If I did the search again, say in a different browser, I got another URL:
http://amazon.com/s/ref=nb_ss_gw/102-8204915-1347316?url=search-alias%3Daps&fieldkeywords=
flower&Go.x=0&Go.y=0&Go=Go
Notice where things are similar and where they are different. Looking for what??™s common
(the http://amazon.com/s prefix and the ?url=search-alias%3Daps&field-keywords=
flower&Go.x=0&Go.y=0&Go=Go argument), I eliminated the sections that were different to get
the following:
http://amazon.com/s/?url=search-alias%3Daps&field-keywords=flower&Go.x=0&Go.y=0&
Go=Go
This URL seemed to work fine. You can even eliminate &Go.x=0&Go.y=0&Go=Go to boil the
request down to this:
http://amazon.com/s/?url=search-alias%3Daps&field-keywords=flower
So, how do you limit the search to books? Going to Amazon, selecting the Book section,
and using the flower keyword, you can get to the following URL:
http://amazon.com/s/ref=nb_ss_gw/102-6984159-2338509?url=searchalias%
3Dstripbooks&field-keywords=flower&Go.x=12&Go.y=6
Stripping away the parameters as before gave me this:
http://amazon.


Pages:
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139