Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTextFromHTML ¶
ExtractTextFromHTML returns a string with only the text version of the web page
func FileExists ¶
FileExists returns true if the file is present on disk
func IsFlagPassed ¶
IsFlagPassed returns true if the flag is present on the command line
Types ¶
type Cookies ¶
type Cookies []struct {
Domain string `json:"domain"`
ExpirationDate float64 `json:"expirationDate,omitempty"`
HostOnly bool `json:"hostOnly"`
HTTPOnly bool `json:"httpOnly"`
Name string `json:"name"`
Path string `json:"path"`
SameSite string `json:"sameSite"`
Secure bool `json:"secure"`
Session bool `json:"session"`
StoreID string `json:"storeId"`
Value string `json:"value"`
ID int `json:"id"`
}
Cookies maps the json file exported from Chrome containing the cookies
type HTMLMeta ¶
type HTMLMeta struct {
Title string `json:"title"`
Description string `json:"description"`
Image string `json:"image"`
SiteName string `json:"site_name"`
}
HTMLMeta contains information from the HTML page
func GetMetaFromHTML ¶
GetMetaFromHTML extracts info from an HTML page and store them on a HTMLMeta struct
Click to show internal directories.
Click to hide internal directories.