parsehtml

package
v0.0.0-...-61272f7 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parsehtml

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

func (*Parsehtml) AddIgnoreCharacter

func (parse *Parsehtml) AddIgnoreCharacter(char string)

func (*Parsehtml) AddNewString

func (parse *Parsehtml) AddNewString(found string, original_string string, found_type string, lines string)

Adds new string in found_strings sets trimmed string as "found" and original string as "original_string" type -> string describing type of visible html, you can specify it while calling parse.parseContent method lines -> lines where found string exists, you can get it with parse.findLineOfString method

func (*Parsehtml) ExtractAlt

func (parse *Parsehtml) ExtractAlt()

HTML img's alt attributes extraction method

func (*Parsehtml) ExtractHashtag

func (parse *Parsehtml) ExtractHashtag()

Extracts "#text" type (selected) strings

func (*Parsehtml) ExtractPlaceholder

func (parse *Parsehtml) ExtractPlaceholder()

HTML input's Placeholders attributes extraction method XX - Can't use word "placeholder" inside placeholder - XX ?? why? it does well

func (*Parsehtml) ExtractText

func (parse *Parsehtml) ExtractText()

Simple strings extraction method - just plain strings in HTML

func (*Parsehtml) ExtractTextCC

func (parse *Parsehtml) ExtractTextCC()

closing tag <-> closing tag "(\<\/(.{0,10})\>)" text extraction

func (*Parsehtml) ExtractTextCO

func (parse *Parsehtml) ExtractTextCO()

closing tag <-> opening tag text extraction

func (*Parsehtml) ExtractTextOO

func (parse *Parsehtml) ExtractTextOO()

opening tag <-> opening tag "(\<[^\/](.{0,10})\>)" text extraction

func (*Parsehtml) ExtractTitle

func (parse *Parsehtml) ExtractTitle()

HTML title attributes extraction method

func (*Parsehtml) GetFoundStrings

func (parse *Parsehtml) GetFoundStrings() map[string][]map[string]string

func (*Parsehtml) GetOriginalContent

func (parse *Parsehtml) GetOriginalContent() string

func (*Parsehtml) Init

func (parse *Parsehtml) Init(file string, c config.Config)

func (*Parsehtml) ParseFile

func (parse *Parsehtml) ParseFile(file string, c config.Config) *Parsehtml

func (*Parsehtml) RemoveFirstOccurrence

func (parse *Parsehtml) RemoveFirstOccurrence(element string, substring string) string

finds and removes only first occurrence using index

func (*Parsehtml) RemoveLastOccurrence

func (parse *Parsehtml) RemoveLastOccurrence(element string, substring string) string

finds and removes only last occurrence using index

func (*Parsehtml) SetFile

func (parse *Parsehtml) SetFile(file string)

setters

func (*Parsehtml) SetPrefix

func (parse *Parsehtml) SetPrefix(prefix string)

func (*Parsehtml) SetSuffix

func (parse *Parsehtml) SetSuffix(suffix string)

Jump to

Keyboard shortcuts

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