def get_url(search_term):
    """Generate a URL from search term"""
    template = 'https://www.amazon.com/s?k={}'
    search_term = search_term.replace(' ', '+')

    #add term query to url
    url = template.format(search_term)

    #add page query placeholder
    url += '&page={}'

    return url