[twill] checking for bad links.

jeremiah jeremiah.jester at panasonic.aero
Fri Sep 26 13:50:39 PDT 2008

Thanks Sheryl. I'll try that.

Also, another question..

I'm trying to automate a login script in python using twill. when i do
this via cmd line in twill, everything works as expected and I get the
appropriate sessions/cookies. However, these same variables won't return
when i run the python script? Do I need to pass/return them some how?

Here's what I'm doing...

>> extend_with filename
>>login someusername somepassword
>>show_cookies #coorect vars don't print


from twill.commands import *
def login(u, p):
        fv(1, 'username', u)
        fv(1, 'password', p)

Appreciate your help!


On Fri, 2008-09-26 at 12:53 -0700, Sheryl wrote:
> > Hellow,
> >
> > Just signed up for the list. Newbie at twill. Just want to make sure
> I'm
> doing things right here.
> >
> > I basically want to automate a script that will traverse my
> > site/directory and redirect output for bad links on all pages to an
> error log.
> Twill is a great tool and all, but why roll your own with twill when
> there
> are existing applications like linklint (linklint.org)?
> Sheryl

Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Panasonic Avionics
Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission.

More information about the twill mailing list