[twill] Web log-in intelligence

C. Titus Brown ctb at msu.edu
Thu Jul 15 08:23:24 PDT 2010


On Thu, Jul 15, 2010 at 11:19:50AM -0400, Jamal Mazrui wrote:
> Since web forms are not standardized regarding the HTML code that
> prompts for a user name and password, I would like the program to use
> heuristics that work in most cases (knowing that perfection is elusive,
> especially if the form uses JavaScript in a manner to thwart bots).  I
> am seeking suggestions on how to implement such heuristics.  For
> example, the code might look for words like "Name" and "Password" in id
> or name attributes of text input fields.  Naturally, if anyone has code
> they can share, that would be appreciated.

Firefox seems to have pretty good heuristics for this -- at least, the
"should I save this password?" question box generally comes up at appropriate
times.  I'm not sure if they inspect the content I'm sending, or if it's
entirely based on the form structure and form fields.

cheers,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the twill mailing list