Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebPage ¶
type WebPage struct {
trafilatura.Metadata
// The page that was requested by the caller
OriginalURL string `json:",omitempty"`
// When the returned source was fetched
FetchTime *time.Time `json:",omitempty"`
StatusCode int `json:",omitempty"`
Error error `json:"-"`
ContentText string `json:",omitempty"`
// The url that was requested by whatever locally was fetching: allows
// for something downstream from OriginalURL to filter query params
RequestedURL *nurl.URL `json:"-"`
// contains filtered or unexported fields
}
func (WebPage) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.