Script modified to fetch the data from only details page and not from search page