go-extractor/browser.go

17 lines
215 B
Go
Raw Normal View History

2024-12-07 03:53:46 -05:00
package extractor
import (
"context"
"io"
)
type OpenPageOptions struct {
Referer string
}
2024-12-07 03:53:46 -05:00
type Browser interface {
io.Closer
Open(ctx context.Context, url string, opts OpenPageOptions) (Document, error)
2024-12-07 03:53:46 -05:00
}