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

Hi,
I have accessed the www.google.com page using mechanize and got all the inputs on the form in to an array using find_all_inputs() method which had returned the reference to the list of inputs... Could any one let me know how can i get the name of each input.

Thanks
  • Comment on How to get the name of an input which is on a HTML form

Replies are listed 'Best First'.
Re: How to get the name of an input which is on a HTML form
by Corion (Patriarch) on Oct 13, 2008 at 10:57 UTC
Re: How to get the name of an input which is on a HTML form
by wazoox (Prior) on Oct 13, 2008 at 11:50 UTC
    As a side note, please check Google terms of use. I think they forbid explicitly screen-scraping of their site, so it would probably be better to use one of their API instead.
Re: How to get the name of an input which is on a HTML form
by johndageek (Hermit) on Oct 13, 2008 at 16:02 UTC
    Yes, please check the terms of service.

    They will cut off service to an IP address, such as a corporate proxy.

    p.s. it WAS noticed and discussed internally (or should discussed be in caps?)

    Enjoy!
    Dageek