Documentation ¶
Index ¶
- Constants
- func AbsoluteURL(pathOrURL string, u *url.URL) string
- type Browser
- func (b *Browser) Body() ([]byte, error)
- func (b *Browser) Close() error
- func (b *Browser) Do(req *http.Request) error
- func (b *Browser) Forms() ([]*Form, error)
- func (b *Browser) Printf(format string, v ...interface{})
- func (b *Browser) SaveToFile(path string) error
- func (b *Browser) Submit(form *Form) error
- func (b *Browser) UserAgent(ua string)
- func (b *Browser) Visit(url string) error
- type Form
- type Input
- type Logger
Constants ¶
View Source
const UserAgentChrome = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Browser ¶
type Browser struct { Logger *http.Client *http.Response // contains filtered or unexported fields }
func (*Browser) SaveToFile ¶
Click to show internal directories.
Click to hide internal directories.