cctv

package module
v0.0.0-...-f086ef2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 8 Imported by: 0

README

cctv

the spider for cctv news

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JingJiData

type JingJiData struct {
	Id      string `json:"id"`         // 新闻ID
	Desc    string `json:"brief"`      // 新闻简介
	Title   string `json:"title"`      // 新闻标题
	Content string `json:"content"`    // 新闻内容
	SrcUrl  string `json:"url"`        // 新闻链接
	PubTime string `json:"focus_date"` // 发布时间
}

func (*JingJiData) PubTimeFormat

func (j *JingJiData) PubTimeFormat(layout string) string

type JingJiDatas

type JingJiDatas []*JingJiData

func JingJi

func JingJi(lastId string) (JingJiDatas, error)

JingJi 经济频道

type XwlbData

type XwlbData struct {
	Title   string
	Content string
	SrcUrl  string
	PubTime time.Time
}

type XwlbDatas

type XwlbDatas []*XwlbData

func XWLB

func XWLB(date string) (XwlbDatas, error)

XWLB 每日新闻联播

Jump to

Keyboard shortcuts

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