Documentation ¶
Index ¶
- func GetHTMLTitle(r io.Reader) (string, bool)
- func GetTechnologies(headers http.Header, body []byte) []string
- func InitWappalyzer() error
- type Chrome
- func (chrome *Chrome) Preflight(url *url.URL) (resp *http.Response, title string, technologies []string, err error)
- func (chrome *Chrome) PrepareHeaderMap()
- func (chrome *Chrome) Screenshot(url *url.URL) ([]byte, error)
- func (chrome *Chrome) StorePreflight(url *url.URL, db *gorm.DB, resp *http.Response, title string, ...) (uint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTMLTitle ¶
GetHTMLTitle will parse the Title from an HTML document ref:
https://siongui.github.io/2016/05/10/go-get-html-title-via-net-html/
func GetTechnologies ¶
GetTechnologies uses wapalyzer signatures to return an array of technologies that are in use by the remote site.
func InitWappalyzer ¶
func InitWappalyzer() error
Types ¶
type Chrome ¶
type Chrome struct { ResolutionX int ResolutionY int UserAgent string Timeout int64 Delay int FullPage bool ChromePath string Proxy string Headers []string HeadersMap map[string]interface{} }
Chrome contains information about a Google Chrome instance, with methods to run on it.
func (*Chrome) Preflight ¶
func (chrome *Chrome) Preflight(url *url.URL) (resp *http.Response, title string, technologies []string, err error)
Preflight will preflight a url
func (*Chrome) PrepareHeaderMap ¶
func (chrome *Chrome) PrepareHeaderMap()
initalize the headers Map. we do this given the format chromedp wants Ref:
https://github.com/chromedp/examples/blob/master/headers/main.go
func (*Chrome) Screenshot ¶
Screenshot takes a screenshot of a URL and saves it to destination Ref:
https://github.com/chromedp/examples/blob/255873ca0d76b00e0af8a951a689df3eb4f224c3/screenshot/main.go
Click to show internal directories.
Click to hide internal directories.