crawler

package
v0.0.0-...-eb961a3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrawlPodcastFeed

func CrawlPodcastFeed(uid string)

func SchedulePodcastCrawling

func SchedulePodcastCrawling()

Types

type Chapter

type Chapter struct {
	Start string `json:"start"`
	Title string `json:"title"`
}

type Episode

type Episode struct {
	Title       string     `json:"title"`
	Url         string     `json:"url"`
	Uid         string     `json:"uid"`
	Description string     `json:"description"`
	Text        string     `json:"text"`
	Published   int64      `json:"published"`
	Duration    int64      `json:"duration"`
	Author      string     `json:"author"`
	Content     MediaAsset `json:"content"`
}

type MediaAsset

type MediaAsset struct {
	Url  string `json:"url"`
	Type string `json:"type"`
	Size int    `json:"size"`
}

type Podcast

type Podcast struct {
	Title       string       `json:"title"`
	Subtitle    string       `json:"subtitle"`
	Url         string       `json:"url"`
	Feed        string       `json:"feed"`
	Uid         string       `json:"uid"`
	Description string       `json:"description"`
	Published   int64        `json:"published"`
	Language    string       `json:"language"`
	Image       string       `json:"image"`
	Owner       PodcastOwner `json:"owner"`
	Episodes    []Episode    `json:"episodes"`
}

func ParsePodcastFeed

func ParsePodcastFeed(url string) (*Podcast, error)

type PodcastOwner

type PodcastOwner struct {
	Name  string `json:"title"`
	Email string `json:"title"`
}

Jump to

Keyboard shortcuts

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