Documentation ¶
Index ¶
- Constants
- func AbsAtomPath() string
- func AbsBackupDir() string
- func AbsCookiesPath() string
- func AbsLocalContentDir() string
- func AbsMatchedContentDir() string
- func AbsReduxDir() string
- func AbsSourcePath() string
- func ChRoot(d string)
- func LoadRecipes() (wits.SectionKeyValue, error)
- func NewIRAProxy(sources []*Source) *kvas.IRAProxy
- func Pwd() string
- func SourcesIds(src ...*Source) []string
- type QuerySelectors
- type Source
Constants ¶
View Source
const ( GetContentErrorsProperty = "get-content-errors" DecodeErrorsProperty = "decode-errors" MatchContentErrorsProperty = "match-content-errors" ReduceErrorsProperty = "reduce-errors" CurrentElementsProperty = "current-elements" AddedElementsProperty = "added-elements" RemovedElementsProperty = "removed-elements" PreviousElementsProperty = "previous-elements" SourceURLProperty = "source-url" )
View Source
const ( Id = "id" URL = "url" Recipe = "recipe" Encoding = "encoding" Title = "title" Category = "category" ContainerSelector = "container-selector" TextContent = "text-content" ElementsSelector = "elements-selector" ElementReductionSelector = "element-reduction-selector" ElementAttribute = "element-attribute" )
Variables ¶
This section is empty.
Functions ¶
func AbsAtomPath ¶
func AbsAtomPath() string
func AbsBackupDir ¶
func AbsBackupDir() string
func AbsCookiesPath ¶
func AbsCookiesPath() string
func AbsLocalContentDir ¶
func AbsLocalContentDir() string
func AbsMatchedContentDir ¶
func AbsMatchedContentDir() string
func AbsReduxDir ¶
func AbsReduxDir() string
func AbsSourcePath ¶
func AbsSourcePath() string
func LoadRecipes ¶
func LoadRecipes() (wits.SectionKeyValue, error)
func NewIRAProxy ¶
func SourcesIds ¶
Types ¶
type QuerySelectors ¶
type QuerySelectors struct { ContainerSelector string TextContent string ElementsSelector string ElementReductionSelector string ElementAttribute string }
func NewQuerySelectors ¶
func NewQuerySelectors(kv wits.KeyValue) *QuerySelectors
func (*QuerySelectors) IsValid ¶
func (qs *QuerySelectors) IsValid() error
func (*QuerySelectors) Override ¶
func (qs *QuerySelectors) Override(another *QuerySelectors)
type Source ¶
type Source struct { Id string URL *url.URL Recipe string Encoding string Title string Category string Query *QuerySelectors }
func LoadSources ¶
func SourceById ¶
Click to show internal directories.
Click to hide internal directories.