Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mechanize python #11

resp = None

for link in br.links():
    siteMatch = re.compile( 'www.foofighters.com' ).search( link.url )

    if siteMatch:
        resp = br.follow_link( link )
        break
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #mechanize #python
ADD COMMENT
Topic
Name
1+3 =