parsers

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetikScraper

type DetikScraper struct {
	Client utils.HTTPClient
	Utils  utils.ScrapeUtils
	Cache  utils.CacheOps
}

func (DetikScraper) Detail

func (detik DetikScraper) Detail(detailUrl string, c *gin.Context) (models.Article, error)

func (DetikScraper) Popular

func (detik DetikScraper) Popular(ginContext *gin.Context) ([]models.Article, error)

func (DetikScraper) Search

func (detik DetikScraper) Search(keyword string, ginContext *gin.Context) ([]models.Article, error)

type KompasScraper

type KompasScraper struct {
	Client utils.HTTPClient
	Utils  utils.ScrapeUtils
	Cache  utils.CacheOps
}

func (KompasScraper) Detail

func (k KompasScraper) Detail(url string, c *gin.Context) (models.Article, error)

func (KompasScraper) Popular

func (k KompasScraper) Popular(c *gin.Context) ([]models.Article, error)

func (KompasScraper) Search

func (k KompasScraper) Search(keyword string, g *gin.Context) ([]models.Article, error)

Jump to

Keyboard shortcuts

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