l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Apr 10 12:12

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Automating web site interaction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Automating web site interaction

On Monday 10 April 2006 13:12, Bruce Wolk wrote:
> Does anyone have a recommendation for some software that I can run as
> a cron job to go to a specific website, autheticate itself on a login
> web page with a userid and password, then go to a specific page on
> the site and mimick a button click?

Try using Perl's WWW::Mechanize library which is also available for 

[bloom@cat-in-the-hat literature]$ apt-cache search WWW Mechanize
libhttp-recorder-perl - Record interaction with websites
libwww-mechanize-perl - Automate interaction with websites
python-mechanize - stateful programmatic web browsing
python2.3-mechanize - stateful programmatic web browsing
python2.4-mechanize - stateful programmatic web browsing

And for Ruby it's at http://rubyforge.org/projects/mechanize/

HTTP::Recorder looks like it makes it even easier to write 
WWW::Mechanize scripts.

[bloom@cat-in-the-hat literature]$ apt-cache show libhttp-recorder-perl 
Package: libhttp-recorder-perl
<snip the boring parts>
Description: Record interaction with websites
 HTTP::Recorder allows your Perl program to record the interaction with
 websites (SSL and non-SSL). You set HTTP::Recorder as the user agent
 for a proxy, and it will rewrite HTTP responses so that additional
 requests can be recorded.
 The interaction is recorded in a script suitable for WWW::Mechanize. If
 a JavaScript-enabled browser is being used, the script can be examined
 an modified as it is being recorded.

--Ken Bloom

I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.

Attachment: pgp00000.pgp
Description: PGP signature

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.