targets

package
v0.0.0-...-3bd2bae Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Targets = map[string]interface{}{
	"amna.gr":        El_Amna{},
	"efsyn.gr":       El_Efsyn{},
	"liberal.gr":     El_Liberal{},
	"lifo.gr":        El_Lifo{},
	"news247.gr":     El_News247{},
	"pronews.gr":     El_ProNews{},
	"moneyreview.gr": El_MoneyReview{},
	"stoxos.gr":      El_Stoxos{},
	"tvxs.gr":        El_Tvxs{},
}

Functions

func ParseList

func ParseList(client *http.Client, t Target) ([]*gofeed.Item, error)

Types

type El_Amna

type El_Amna struct{}

func (El_Amna) ParseList

func (h El_Amna) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_Amna_Item

type El_Amna_Item struct {
	Id        string `json:"id,omitempty"`
	Title     string `json:"title,omitempty"`
	Category  string `json:"parent_title,omitempty"`
	Note      string `json:"note2,omitempty"`
	Path      string `json:"note3,omitempty"`
	Published string `json:"c_daytime,omitempty"` // 2023-06-11 10:20:36
	Kind      string `json:"kind,omitempty"`
}

Ex. https://www.amna.gr/sport/article/737728/I-kardia-tou-Mpasket-tha-chtupa-sto-Irakleio-Kritisrn

type El_Efsyn

type El_Efsyn struct{}

func (El_Efsyn) ParseList

func (h El_Efsyn) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_Liberal

type El_Liberal struct{}

func (El_Liberal) ParseList

func (h El_Liberal) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_Lifo

type El_Lifo struct{}

func (El_Lifo) ParseList

func (h El_Lifo) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_MoneyReview

type El_MoneyReview struct{}

func (El_MoneyReview) ParseList

func (h El_MoneyReview) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_News247

type El_News247 struct{}

func (El_News247) ParseList

func (h El_News247) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_ProNews

type El_ProNews struct{}

func (El_ProNews) ParseList

func (h El_ProNews) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_Stoxos

type El_Stoxos struct{}

func (El_Stoxos) ParseList

func (h El_Stoxos) ParseList(client *http.Client) ([]*gofeed.Item, error)

type El_Tvxs

type El_Tvxs struct{}

func (El_Tvxs) ParseList

func (h El_Tvxs) ParseList(client *http.Client) ([]*gofeed.Item, error)

type Target

type Target interface {
	ParseList(client *http.Client) ([]*gofeed.Item, error)
}

Jump to

Keyboard shortcuts

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