scraper

package
v0.0.0-...-d3bd4fd Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Edited

func Edited(body string, content string) bool

Edited tell us if a content of a website is changed

func GetContent

func GetContent(u string) string

GetContent returns the content of a website

func GetCurrentTimestamp

func GetCurrentTimestamp() int64

GetCurrentTimestamp returns milliseconds from 1 Jan 1970

func SendEmail

func SendEmail()

SendEmail now prints only EDITED. In a future feature I would like to use OAuth2 to send email (gmail)

func StartMonitoring

func StartMonitoring(website db.Website, connString string, dbName string)

StartMonitoring prepare the interval between two requests and start monitoring the website w(input).

Types

This section is empty.

Jump to

Keyboard shortcuts

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