web.web.browser.Browser

Package web :: Package web :: Module browser :: Class Browser |
[hide private]
[frames] | no frames]

# Class Browser

source code

Known Subclasses:
  - AppBrowser

Instance Methods | [hide private]
__init__(self) | source code
reset(self) Clears all cookies and history. | source code
build_opener(self) Builds the opener using urllib2.build_opener. | source code
do_request(self, req) | source code
open(self, url, data=None, headers=`{``}`) Opens the specified url. | source code
show(self) Opens the current page in real web browser. | source code
get_response(self) Returns a copy of the current response. | source code
get_soup(self) Returns beautiful soup of the current document. | source code
get_text(self, e=None) Returns content of e or the current document as plain text. | source code
_get_links(self) | source code
get_links(self, text=None, text_regex=None, url=None, url_regex=None, predicate=None) Returns all links in the document. | source code
follow_link(self, link=None, text=None, text_regex=None, url=None, url_regex=None, predicate=None) | source code
find_link(self, text=None, text_regex=None, url=None, url_regex=None, predicate=None) | source code
_filter_links(self, links, text=None, text_regex=None, url=None, url_regex=None, predicate=None) | source code
get_forms(self) Returns all forms in the current document. | source code
select_form(self, name=None, predicate=None, index=0) Selects the specified form. | source code
submit(self, **kw) submits the currently selected form. | source code
__getitem__(self, key) | source code
__setitem__(self, key, value) | source code

Method Details | [hide private]

### build_opener(self) | source code
Builds the opener using urllib2.build_opener. Subclasses can override this function to prodive custom openers.

### get_forms(self) | source code
Returns all forms in the current document. The returned form objects implement the ClientForm.HTMLForm interface.