Re: Mechanize/Browser question

2006-07-10 Thread John J. Lee
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > bruce schrieb: > > hi... > > i can do the following > > br = Browser > > br.open("www.yahoo.com") > > br.open("file:///foo") > > but can i do > > s = "..." qualified html text > > br.open(s) > > i'm curious, if i have html from some

Re: Mechanize/Browser question

2006-07-10 Thread Diez B. Roggisch
bruce schrieb: > hi... > > i can do the following > br = Browser > br.open("www.yahoo.com") > br.open("file:///foo") > > but can i do > s = "..." qualified html text > br.open(s) > > i'm curious, if i have html from someother source, is there a way to simply > get it into the "B

Re: Mechanize-Browser question..

2006-07-09 Thread Tal Einat
bruce wrote: > r2 = br.follow_link(url_regex=re.compile(r"\*"),nr=1) <<< Seems to me your regex is buggy. You are using a "raw string" yet you still escape the asterisk ('*') with a backslash? This will only match a string which contains an asterisk, while I'm guessing you're trin