blog

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 32 Imported by: 1

Documentation

Index

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)")
View Source
var WORKSHOPS_RE = regexp.MustCompile("(?i)^(שיעורי הקבלה, סדנאות ושיחות)")

Functions

func Analyze

func Analyze()

func Download

func Download()

func Import

func Import()

func ImportLatest

func ImportLatest()

func Init

func Init() (time.Time, *events.BufferedEmitter)

func NewWordpressClient

func NewWordpressClient(wpUrl, username, password string) (*wordpress.Client, error)

func Shutdown

func Shutdown()

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

func (*UrlUnShortner) Follow added in v1.1.5

func (s *UrlUnShortner) Follow(url string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL