I have a web bot that I created that I'd like to release, but before I do I want to make it easier to adapt to user's pages.

Instead of having a config section asking for forum_num or forum_name to use the bot, I want to setup a web based admin panel that calculates this for the user.

My idea is to have a form field where the user will copy and paste the entire source code for their web page (the one they want to use the bot on) and ask for a specific field name within the forum (for example, a form could have a forum field called subject).

With their forum field and source code, I'd like to run WWW::Mechanize through their code and automatically determine which numerical form to use.

Does anyone know if WWW::Mechanize can be used for this purpose? Can anyone give me a hand piecing this together?


In reply to Can we count forms with mechanize? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.