openblind

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

README

openblind

Openblind parses a widely used site reviews and interviews.

Usage

./openblind -url <company page> -section interviews

License

GNU General Public License v3.0 or later

See LICENSE to see the full text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttrValue

func AttrValue(node *html.Node, attr string) (string, bool)

func ExtractText

func ExtractText(node *html.Node) []string

func Find

func Find(node *html.Node, m Matcher) (*html.Node, bool)

Find returns first node that matches Matcher

func FindAll

func FindAll(node *html.Node, m Matcher) []*html.Node

func Flatten

func Flatten(fn func(string) []string) func([]string) []string

func FlattenByNewLine

func FlattenByNewLine(v []string) []string

func RemoveStrings

func RemoveStrings(remove ...string) func(s []string) []string

func WithAttr

func WithAttr(n *html.Node, s string) (string, bool)

func WithAttrFn

func WithAttrFn(n *html.Node, fn func(string) bool) (string, bool)

Types

type Matcher

type Matcher func(*html.Node) bool

func WithClass

func WithClass(class string) Matcher

func WithDataTest

func WithDataTest(value string) Matcher

func WithDataTestRe

func WithDataTestRe(re *regexp.Regexp) Matcher

func WithID

func WithID(id string) Matcher

func WithIDRe

func WithIDRe(re *regexp.Regexp) Matcher

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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