Documentation ¶
Index ¶
- func AddByItem(s *models.Entry, it *rss.Item, b *models.Blog) (int64, error)
- func AddsByChannels(chs []*rss.Channel, b *models.Blog) (entries []*models.Entry, errs []error)
- func UpdateSocials(entry *models.Entry)
- type Extractor
- func (e *Extractor) ByNames(names []string) (choices []string)
- func (e *Extractor) Codes() (codes []string)
- func (e *Extractor) Do(entry *models.Entry) error
- func (e *Extractor) Doc(urlStr string) (*gq.Document, error)
- func (e *Extractor) Duration()
- func (e *Extractor) Imgs() (imgs []*Img)
- func (e *Extractor) Urls() (urls []string)
- type Img
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddsByChannels ¶
func UpdateSocials ¶
Types ¶
type Extractor ¶
type Extractor struct { *behavior.UserBehavior // contains filtered or unexported fields }
func NewExtractor ¶
func NewExtractor() *Extractor
func (*Extractor) ByNames ¶
Extracting by string array in Title, Content
.. note:: 3 chars less word will not extract in function.
Click to show internal directories.
Click to hide internal directories.