Using requests
@client.command()
async def command(ctx, search=""):
    response = requests.get('URL'+search)    
    data = response.json()
    await ctx.send(data)
But whenever typing the command in discord I have to type %20 whenever there is a space. Is there any way to do that automatically in the code?
 
     
    