func (c *Client) Extract(urls []string, options Options) ([]Response, error) {
	responses := make([]Response, len(urls))
	for i := 0; i < len(urls); i += 10 {
		to := len(urls)
		if to > i+10 {
			to = i + 10
		}
		res, err := c.extract(urls[i:to], options)
		if err != nil {
			return nil, err
		}

		reslen := to - i
		if reslen > len(res) {
			reslen = len(res)
		}
		for j := 0; j < reslen; j++ {
			responses[i+j] = res[j]
		}
	}
	return responses, nil
}
// The main exported function that will extract urls.
The main exported function that will extract urls.
// The main exported function that will extract urls .
func (c *Client) Extract(urls []string, options Options) ([]Response, error) {
	responses := make([]Response, len(urls))
	for i := 0; i < len(urls); i += 10 {
		to := len(urls)
		if to > i+10 {
			to = i + 10
		}
		res, err := c.extract(urls[i:to], options)
		if err != nil {
			return nil, err
		}
		reslen := to - i
		if reslen > len(res) {
			reslen = len(res)
		}
		for j := 0; j < reslen; j++ {
			responses[i+j] = res[j]
		}
	}
	return responses, nil
}
func ( c * Client ) Extract ( urls [ ] string , options Options ) ( [ ] Response , error ) { responses := make ( [ ] Response , len ( urls ) ) for i := 0 ; i < len ( urls ) ; i += 10 { to := len ( urls ) if to > i + 10 { to = i + 10 } res , err := c . extract ( urls [ i : to ] , options ) if err != nil { return nil , err } reslen := to - i if reslen > len ( res ) { reslen = len ( res ) } for j := 0 ; j < reslen ; j ++ { responses [ i + j ] = res [ j ] } } return responses , nil }
The main exported function that will extract urls.
The main exported function that will extract urls .