mech

package module
v1.25.7 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: OSL-3.0 Imports: 11 Imported by: 11

README

Mech

I see him behind my lids in a bright grey shirt
I see him tripping running and falling, covered in dirt
I see a lot of these things lately I know
I know none of it is real

Blood Orange (2013)

Mechanize

Some users might want to make anonymous requests, because of privacy or any number of other reasons. This module allows people to do that. Most API these days only offically support authenticated access. This is useful for the company providing the API, as they can use the data for their own purposes (analytics etc). However authentication really doesnt do anything for the end user. Its just a pointless burden to getting the information you need for a program you may be writing. Consider that in many cases, the same information is available via HTML on the primary website, usually without being logged in. So why can you do that with HTML, but not with the API? Well you can, using this module.

https://pkg.go.dev/github.com/89z/mech

Sites

  1. YouTube
  2. SoundCloud
  3. Deezer
  4. MusicBrainz

Author

Steven Penny

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRequest added in v1.24.9

func ReadRequest(r io.Reader) (*http.Request, error)

Types

type HtmlReader added in v1.25.7

type HtmlReader struct {
	*html.Lexer
	html.TokenType
	// contains filtered or unexported fields
}

func NewHtmlReader added in v1.25.7

func NewHtmlReader(r io.Reader) HtmlReader

func (HtmlReader) Attr added in v1.25.7

func (h HtmlReader) Attr(key string) (string, bool)

func (*HtmlReader) Bytes added in v1.25.7

func (h *HtmlReader) Bytes() []byte

func (*HtmlReader) NextAttr added in v1.25.7

func (h *HtmlReader) NextAttr(key, val string) bool

func (*HtmlReader) NextTag added in v1.25.7

func (h *HtmlReader) NextTag(name string) bool

type HtmlWriter added in v1.25.7

type HtmlWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

func NewHtmlWriter added in v1.25.7

func NewHtmlWriter(w io.Writer) HtmlWriter

func (HtmlWriter) ReadFrom added in v1.25.7

func (h HtmlWriter) ReadFrom(r io.Reader) error

func (*HtmlWriter) SetIndent added in v1.25.7

func (h *HtmlWriter) SetIndent(indent string)

type JsReader added in v1.25.7

type JsReader struct {
	*js.AST
}

func NewJsReader added in v1.25.7

func NewJsReader(r io.Reader) (*JsReader, error)

func (*JsReader) Read added in v1.25.7

func (ast *JsReader) Read(be map[string]string)

Directories

Path Synopsis
cmd
html-indent command
mech command
media command
youtube command
Deezer
Deezer
MusicBrainz
MusicBrainz
research
2021-06-09 command
2021-08-08 command
YouTube
YouTube

Jump to

Keyboard shortcuts

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