huzefa52 has asked for the wisdom of the Perl Monks concerning the following question:

suppose there is a webpage in which list menu button is present so when i click on that list button drop down comes from where I can select particular thing. Now, my question is I want the content that is present in that list button because if i normally fetch the page contents it doesnt give me the content of list options. Can anyone please help me on this. I want code in perl only.
  • Comment on how to get full webpage containts from a webpage

Replies are listed 'Best First'.
Re: how to get full webpage containts from a webpage
by Corion (Patriarch) on Aug 22, 2013 at 12:42 UTC
      Thanks for the reply. Basically its a SOLR 4.3 UI page where the list of cores are in list option. so, I am not able to access that cores names.

        You know, Solr allows you to request JSON or XML instead of HTML... might be a bit easier.

        http://wiki.apache.org/solr/SchemaRESTAPI

        use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name"
Re: how to get full webpage containts from a webpage
by daxim (Curate) on Aug 22, 2013 at 12:43 UTC
    I am guessing you need to execute JavaScript to get the content you desire. This is a FAQ. Since you want a Perl-only solution, I recommend WWW::Scripter.
      Ok, let me try with WWW::Mechanize
Re: how to get full webpage containts from a webpage
by mishin (Sexton) on Aug 22, 2013 at 12:46 UTC