Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mechanize python #2

response1 = br.follow_link(text_regex=r"cheeses*shop", nr=1)
assert br.viewing_html()
print br.title()
print response1.geturl()
print response1.info()  # headers
print response1.read()  # body
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #mechanize #python
ADD COMMENT
Topic
Name
9+4 =