Documentation ¶
Index ¶
- type Resources
- type WebArchive
- func (w *WebArchive) Doc(decorate bool) (*goquery.Document, error)
- func (w *WebArchive) ExtractResources(dir string) (map[string]string, error)
- func (w *WebArchive) FindResource(ref string) (res *Resources, exist bool)
- func (w *WebArchive) From(warc string) (err error)
- func (w *WebArchive) PatchRef(ref string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resources ¶
type Resources struct { WebResourceMIMEType string `plist:"WebResourceMIMEType"` WebResourceTextEncodingName string `plist:"WebResourceTextEncodingName"` WebResourceURL string `plist:"WebResourceURL"` WebResourceFrameName string `plist:"WebResourceFrameName"` WebResourceData []byte `plist:"WebResourceData"` }
type WebArchive ¶
type WebArchive struct { WebMainResources *Resources `plist:"WebMainResource"` WebSubResources []*Resources `plist:"WebSubresources"` WebSubframeArchives []*WebArchive `plist:"WebSubframeArchives"` // contains filtered or unexported fields }
func (*WebArchive) ExtractResources ¶
func (w *WebArchive) ExtractResources(dir string) (map[string]string, error)
func (*WebArchive) FindResource ¶
func (w *WebArchive) FindResource(ref string) (res *Resources, exist bool)
func (*WebArchive) From ¶
func (w *WebArchive) From(warc string) (err error)
func (*WebArchive) PatchRef ¶
func (w *WebArchive) PatchRef(ref string) string
Click to show internal directories.
Click to hide internal directories.