Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTMLTitle ¶
GetHTMLTitle extracts the title from a parsed document.
Types ¶
type HTMLFetcher ¶
type HTMLFetcher struct {
// contains filtered or unexported fields
}
HTMLFetcher is the default fetcher.
func New ¶
func New(client *http.Client) *HTMLFetcher
New returns an HTMLFetcher initialized with the http.Client passed in.
type PageInfo ¶
PageInfo holds information about a page that has been fetched.
func (*PageInfo) MissingTitle ¶
MissingTitle returns true if no title was found.
func (*PageInfo) Sha1String ¶
Sha1String returns a sha1 of the contents of the page that was fetched.
func (*PageInfo) WriteToFile ¶
WriteToFile writes the contents of the page that was fetched to the path provided.
Click to show internal directories.
Click to hide internal directories.