in reply to Extracting data from a website.
Is there a way for me to automate clicking on agree button so that I can extract the data on the second page.
That's exactly what WWW::Mechanize was written for.