[Zope] xron on Solaris

Mike Renfro renfro@tntech.edu
Thu, 29 Aug 2002 08:12:59 -0500


On Thu, Aug 29, 2002 at 08:24:43AM -0400, Shilpa Shenvi wrote:

> When I run lynx interactively, there are certain prompts I have to
> answer - so I created an expect script to do this.

> Do you know of alternatives that will not require bringing up a
> browser?

Python and urllib, or Perl and LWP. Assuming the prompts you answer in
lynx are just form entries, it's simple. Even my feeble Python skills
managed to put together a script that filled out all the entries on
Verizon's website in order to send my phone a text message:

  #!/usr/bin/python
  import urllib, sys

  params = urllib.urlencode({'min': '8005551212',
                             'showDisclaimer': 'n',
                             'Send.x': 'Yes',
                             'Subject': '',
                             'senderName': 'Me',
                             'message': sys.argv[1]})

  f=urllib.urlopen("http://www.msg.myvzw.com/results.jsp",params)

All the above parameters were just scraped out of the HTML source of
the form.

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu