bodyLinkHrefTagParser parses link tag from response
(resp *navigation.Response)
| 186 | |
| 187 | // bodyLinkHrefTagParser parses link tag from response |
| 188 | func bodyLinkHrefTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) { |
| 189 | resp.Reader.Find("link[href]").Each(func(i int, item *goquery.Selection) { |
| 190 | href, ok := item.Attr("href") |
| 191 | if ok && href != "" { |
| 192 | navigationRequests = append(navigationRequests, navigation.NewNavigationRequestURLFromResponse(href, resp.Resp.Request.URL.String(), "link", "href", resp)) |
| 193 | } |
| 194 | }) |
| 195 | return |
| 196 | } |
| 197 | |
| 198 | // bodyEmbedTagParser parses Embed tag from response |
| 199 | func bodyEmbedTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) { |