I want to create an Automation which will take input from user and search it on amazon and fetch records only which are in stock and then write back it on excel file . Please guide me

I want to create an Automation which will take input from user and search it on amazon and fetch records only which are in stock and then write back it on excel file . Please guide me