fuzzyelem

package module
v0.0.0-...-18afafd Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 8 Imported by: 0

README

To run:

go run ./cmd help
go run ./cmd sourcefile targetfile

To build binary:

go build -o ./bin/fuzzyelem ./cmd

Binary usage:

./bin/fuzzyelem help
./bin/fuzzyelem --id make-everything-ok-button ./samples/sample-0-origin.html ./samples/sample-4-the-mash.html

Documentation

Index

Constants

View Source
const (
	// MaxDepthFromRoot sets how deep will recursive search go
	MaxDepthFromRoot = 4
	// RootDepth decides order of ancestor node to start search from
	RootDepth = 2

	PossibleSimilarityTreshold = 3
	CertainSimilarityTreshold  = 6
)

Variables

This section is empty.

Functions

func Search(id, sourcePath, targetPath string) (path string, err error)

Search looks for htlm element in targetPath html file similar to element from sourcePath file. Target element from sourcePath is selected by id attribute

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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