Documentation ¶
Index ¶
- Variables
- func Analyze()
- func Download()
- func Import()
- func ImportLatest()
- func Init() (time.Time, *events.BufferedEmitter)
- func NewWordpressClient(wpUrl, username, password string) (*wordpress.Client, error)
- func Shutdown()
- type BlogPostFilter
- type BucketHistorgram
- type PassFilter
- type TitleBasedFilter
- type UrlUnShortner
Constants ¶
This section is empty.
Variables ¶
View Source
var CLIP_RE = regexp.MustCompile("(?i)клип")
View Source
var DECLAMATION_RE = regexp.MustCompile("(?i)^(Радио-версия|Audio Version Of The Blog|גרסת אודיו)")
View Source
var HOST_RE = regexp.MustCompile(`laitman\.(com|es|ru|co\.il)`)
View Source
var LESSON_RE = regexp.MustCompile("(?i)^(Уроки и лекции|Утренний урок|Вечерний урок|Урок по Книге Зоар|Lección diaria de Cabalá|Lección diaria de Cábala|Lección diaria de la Cabalá|Daily Kabbalah Lesson|Evening Zohar Lesson|שיעור הקבלה היומי|שיעור וירטואלי|שיעור זוהר|שיעורי הקבלה, סדנאות חיבור ושיחות)")
View Source
var MEDIA_RE = regexp.MustCompile(`\.(jpg|jpeg|png|gif|bmp|mp3|mp4|wmv|flv|pdf|zip)`)
View Source
var POST_ID_HTML_RE = regexp.MustCompile(`(?i)^/(.*)/([0-9]+)\.html$`)
View Source
var PROGRAMS_RE = regexp.MustCompile("(?i)^(Una nueva vida|Una vida nueva|Good Environment|New Life|חיים חדשים|טעימות משיעור הקבלה היומי)")
View Source
var REL_FMT_INT = "/publications/blog/%s/%d"
View Source
var REL_FMT_STR = "/publications/blog/%s/%s"
View Source
var SHORTNER_RE = regexp.MustCompile(`(?i)^/[a-z0-9]{5,8}$`)
View Source
var TERM_RE = regexp.MustCompile(`/(category|topics|tag)`)
View Source
var TWITTER_RE = regexp.MustCompile("(?i)(Мои мысли в Twitter|Mis pensamientos en Twitter|Mis pensamiento en Twitter|My Thoughts On Twitter|המחשבות שלי ב – Twitter)")
Functions ¶
func ImportLatest ¶
func ImportLatest()
func NewWordpressClient ¶
Types ¶
type BlogPostFilter ¶
type BlogPostFilter interface {
IsPass(*wordpress.Post) bool
}
type BucketHistorgram ¶
type BucketHistorgram struct {
// contains filtered or unexported fields
}
func NewBucketHistorgram ¶
func NewBucketHistorgram(bucketSize int) *BucketHistorgram
func (*BucketHistorgram) Add ¶
func (h *BucketHistorgram) Add(val int)
func (*BucketHistorgram) Dump ¶
func (h *BucketHistorgram) Dump()
type PassFilter ¶
type PassFilter struct{}
func (*PassFilter) IsPass ¶
func (f *PassFilter) IsPass(*wordpress.Post) bool
type TitleBasedFilter ¶ added in v1.1.5
type TitleBasedFilter struct{}
func (*TitleBasedFilter) IsPass ¶ added in v1.1.5
func (f *TitleBasedFilter) IsPass(post *wordpress.Post) bool
type UrlUnShortner ¶ added in v1.1.5
type UrlUnShortner struct {
// contains filtered or unexported fields
}
func NewUrlUnShortner ¶ added in v1.1.5
func NewUrlUnShortner() *UrlUnShortner
Click to show internal directories.
Click to hide internal directories.