made script generic to fetch data for any keyword