www_pkg

package
v3.4.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WWW

type WWW interface {
	URLInfo(string, *bool, *bool, *int64) (*models_pkg.URLInfoResponse, error)

	HTMLClean(string, string) ([]byte, error)

	BrowserBot(string, *int64, *int64, *string, []string, *string, *bool) (*models_pkg.BrowserBotResponse, error)
}

* Interface for the WWW_IMPL

type WWW_IMPL

type WWW_IMPL struct {
	// contains filtered or unexported fields
}

* Client structure as interface implementation

func NewWWW

* Factory for the WWW interaface returning WWW_IMPL

func (*WWW_IMPL) BrowserBot

func (me *WWW_IMPL) BrowserBot(
	url string,
	timeout *int64,
	delay *int64,
	selector *string,
	exec []string,
	userAgent *string,
	ignoreCertificateErrors *bool) (*models_pkg.BrowserBotResponse, error)

*

  • Browser bot can extract content, interact with keyboard and mouse events, and execute JavaScript on a website. See: https://www.neutrinoapi.com/api/browser-bot/
  • @param string url parameter: Required
  • @param *int64 timeout parameter: Optional
  • @param *int64 delay parameter: Optional
  • @param *string selector parameter: Optional
  • @param []string exec parameter: Optional
  • @param *string userAgent parameter: Optional
  • @param *bool ignoreCertificateErrors parameter: Optional
  • @return Returns the *models_pkg.BrowserBotResponse response from the API call

func (*WWW_IMPL) HTMLClean

func (me *WWW_IMPL) HTMLClean(
	content string,
	outputType string) ([]byte, error)

*

  • Clean and sanitize untrusted HTML. See: https://www.neutrinoapi.com/api/html-clean/
  • @param string content parameter: Required
  • @param string outputType parameter: Required
  • @return Returns the []byte response from the API call

func (*WWW_IMPL) URLInfo

func (me *WWW_IMPL) URLInfo(
	url string,
	fetchContent *bool,
	ignoreCertificateErrors *bool,
	timeout *int64) (*models_pkg.URLInfoResponse, error)

*

  • Parse, analyze and retrieve content from the supplied URL. See: https://www.neutrinoapi.com/api/url-info/
  • @param string url parameter: Required
  • @param *bool fetchContent parameter: Optional
  • @param *bool ignoreCertificateErrors parameter: Optional
  • @param *int64 timeout parameter: Optional
  • @return Returns the *models_pkg.URLInfoResponse response from the API call

Jump to

Keyboard shortcuts

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