Documentation ¶
Index ¶
- type WWW
- type WWW_IMPL
- func (me *WWW_IMPL) BrowserBot(url string, timeout *int64, delay *int64, selector *string, exec []string, ...) (*models_pkg.BrowserBotResponse, error)
- func (me *WWW_IMPL) HTMLClean(content string, outputType string) ([]byte, error)
- func (me *WWW_IMPL) URLInfo(url string, fetchContent *bool, ignoreCertificateErrors *bool, timeout *int64) (*models_pkg.URLInfoResponse, error)
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 ¶
func NewWWW(config configuration_pkg.CONFIGURATION) *WWW_IMPL
* 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 ¶
*
- 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
Click to show internal directories.
Click to hide internal directories.