in reply to Scrape Select Options from Web Page

I used WWW:Mechanize

This works too:

my @files = grep {!/choose one/i} $mech->form_number(1) ->find_input('jumpMenu2')->possible_values;

Replies are listed 'Best First'.
Re^2: Scrape Select Options from Web Page
by BrentD (Sexton) on Jun 06, 2018 at 20:49 UTC
    This isn't working. I think, possibly because the page designer doesn't have an explicit <form> tag in the page.
      I think, possibly because the page designer doesn't have an explicit <form> tag in the page.

      Yes, it does appear that WWW::Mechanize requires the <form> tags to recognize inputs. By your reply to my other solution, I assume you've already figured out that you can feed the HTML to Mojo::DOM with e.g. my $dom = Mojo::DOM->new($mech->content);.