mech

package module
v1.26.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: OSL-3.0 Imports: 6 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://godocs.io/github.com/89z/mech

Sites

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

HTML package

Takes HTML input, and can iterate through elements by tag name or by attribute name and value. Content from text nodes can be returned. Also, you can check if an element has a certain attribute, and return an attribute value given an attribute name. Finally, you can indent and write the HTML to some output.

JavaScript package

Takes JavaScript input, and will return a map. Keys are the variable names, and values are the variable values. The values are returned as byte slices, to make it easy to json.Unmarshal.

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

This section is empty.

Directories

Path Synopsis
cmd
Deezer
Deezer
MusicBrainz
MusicBrainz
research
YouTube
YouTube

Jump to

Keyboard shortcuts

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