mech

package module
v1.22.7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: OSL-3.0 Imports: 3 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

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

Sites

  1. Deezer
  2. MusicBrainz
  3. Rotten Tomatoes
  4. YouTube

Transport

How can I tell if response is Gzip encoded? With cURL, I can do this:

PS C:\> curl -v -H 'Accept-Encoding: gzip' https://github.com/manifest.json
< content-encoding: gzip

and how can I see the Gzipped size? Same cURL command:

PS C:\> curl -v -H 'Accept-Encoding: gzip' https://github.com/manifest.json
< content-length: 345

Now with Go, how can I tell if response is Gzip encoded? With Go, how can I see the Gzipped size? I dont like how Go is deleting response headers:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node added in v1.11.6

type Node struct {
	*html.Node
	// contains filtered or unexported fields
}

func Parse added in v1.11.9

func Parse(r io.Reader) (*Node, error)

func (Node) Attr added in v1.11.6

func (n Node) Attr(key string) string

func (Node) ByAttr added in v1.11.7

func (n Node) ByAttr(key, val string) *Node

func (Node) ByTag added in v1.11.6

func (n Node) ByTag(tag string) *Node

keep source as is, return modified copy

func (*Node) Scan added in v1.12.0

func (n *Node) Scan() bool

this can modify the struct now, as we are working with a copy

func (Node) Text added in v1.11.6

func (n Node) Text() string

Directories

Path Synopsis
cmd
media command
youtube command
Deezer
Deezer
research
2021-06-09 command
2021-07-30 command
YouTube
YouTube

Jump to

Keyboard shortcuts

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