nytimes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NYT_GRAPHQL_HASH = "57cb59fc351b816edf094c214f5ef56532145dd548fdf88103396b349640aa62"

Variables

This section is empty.

Functions

func NYTimesParser

func NYTimesParser() parser.Parser

Types

type AnyWork

type AnyWork struct {
	ContentSearch ContentSearch `json:"contentSearch"`
	DisplayName   string        `json:"displayName,omitempty"`
}

type ContentSearch

type ContentSearch struct {
	Hits Hits `json:"hits"`
}

type Data

type Data struct {
	AnyWork AnyWork `json:"anyWork"`
}

type Edge

type Edge struct {
	Node Node `json:"node"`
}

type GraphQLResponse

type GraphQLResponse struct {
	Data Data `json:"data"`
}

type Headline

type Headline struct {
	Typename string `json:"__typename,omitempty"`
	Default  string `json:"default"`
}

type Hits

type Hits struct {
	Edges []Edge `json:"edges"`
}

type NYTimes

type NYTimes struct{}

func (NYTimes) GetOptions

func (NYTimes) GetOptions() parser.Options

func (NYTimes) Parse

func (NYTimes) Parse(options *parser.Options) (*feeds.Feed, error)

func (NYTimes) String

func (NYTimes) String() string

type Node

type Node struct {
	ID             string   `json:"id,omitempty"`
	Headline       Headline `json:"headline"`
	Summary        string   `json:"summary,omitempty"`
	URL            string   `json:"url,omitempty"`
	FirstPublished string   `json:"firstPublished,omitempty"`
}

Jump to

Keyboard shortcuts

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