fetch

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package fetch contains the methods to extract the relevant models from the HTML from the source URL also handles the conversion of images to ascii art with the image2ascii library

Index

Constants

View Source
const UserAgent = "Lutakko CLI (beta)"

Variables

This section is empty.

Functions

func EventDetails

func EventDetails(url string, eventId string) (*models.EventDetails, error)

EventDetails fetches the eventDetails for eventUrl from source

func EventImage

func EventImage(url string) (string, error)

EventImage fetches normal image file and turns it into an ascii art

func Events

func Events(url string) ([]models.Event, error)

Events fetches the events from the source

Types

type FailedFetch

type FailedFetch struct {
	// contains filtered or unexported fields
}

func (FailedFetch) Error

func (f FailedFetch) Error() string

Directories

Path Synopsis
Package selectors contains the selectors for source HTML
Package selectors contains the selectors for source HTML

Jump to

Keyboard shortcuts

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