& break URLs. Write search_products(url, term, max_price) passing params={'q': term, 'max_price': max_price} to requests.get so encoding is automatic, returning the parsed JSON list.search_products(url, 'desk lamp', 2000)
parsed results for ?q=desk+lamp&max_price=2000
requests URL-encodes the space for you.
params takes a plain dict.
The encoded URL is visible on response.url if curious.