This is the part 2 of the ‘Set up an Amazon book store on Google App Engine’ tutorial series. I assume that you have followed the first part of this tutorial, and completed the app along with it. If you haven’t, then please read the first part, complete it before continuing.
We continue from where we left off in the last part, our homepage, the ‘index.html’ file. On our homepage, we have a nice header message welcoming our users. We have a form in our content area for the user to enter a keyword/topic to search books on. The form action is set to ‘/fetch’, we need to handle this in our code.
Modify the ‘amazon.py’ file and add the following code to it: