hi..
i have the following piece of test code. i'm trying to implement/check out
the follow-link method. i'm just trying to figure out how to get a link from
the page.
i was hoping that the regex would basically get the 1st url link...
any thoughts/comments/ideas as to what i'm doing wrong.
thanks
-bruce
br = Browser()
br.set_handle_r edirect(True)
br.set_handle_r eferer(True)
br.open(url2)
#br.set_cookiej ar(cj)
br.set_debug_re directs(True)
# Log HTTP response bodies (ie. the HTML, most of the time).
br.set_debug_re sponses(True)
# Print HTTP headers.
br.set_debug_ht tp(True)
r2 = br.follow_link( url_regex=re.co mpile(r"\*"),nr =1) <<<<<<<<<<<<< <<
response = br.response() # this is a copy of response
print response.read()
i have the following piece of test code. i'm trying to implement/check out
the follow-link method. i'm just trying to figure out how to get a link from
the page.
i was hoping that the regex would basically get the 1st url link...
any thoughts/comments/ideas as to what i'm doing wrong.
thanks
-bruce
br = Browser()
br.set_handle_r edirect(True)
br.set_handle_r eferer(True)
br.open(url2)
#br.set_cookiej ar(cj)
br.set_debug_re directs(True)
# Log HTTP response bodies (ie. the HTML, most of the time).
br.set_debug_re sponses(True)
# Print HTTP headers.
br.set_debug_ht tp(True)
r2 = br.follow_link( url_regex=re.co mpile(r"\*"),nr =1) <<<<<<<<<<<<< <<
response = br.response() # this is a copy of response
print response.read()
Comment