|
@@ -30,7 +30,7 @@ func (vm *VM) RunSpiderTmp(url string, maxPages int, listDealy, trunPageDelay, c
|
|
|
if url != "" {
|
|
|
sc.Href = url
|
|
|
}
|
|
|
- _, baseCancel, _, _, ctx, cancel := be.NewBrowser(headless, showImage, proxyServe, sc.Href)
|
|
|
+ _, baseCancel, _, _, ctx, cancel := be.NewBrowser(headless, showImage, proxyServe, sc.Href, sc.FilterResource)
|
|
|
qu.Debug("1浏览器打开", *sc)
|
|
|
vm.dnf.Dispatch("debug_event", "1 浏览器打开")
|
|
|
defer func() {
|
|
@@ -116,7 +116,7 @@ func (vm *VM) RunSpider(url string, maxPages int, listDealy int64, contentDelay
|
|
|
if url != "" {
|
|
|
sc.Href = url
|
|
|
}
|
|
|
- _, baseCancel, _, _, ctx, cancel := be.NewBrowser(headless, showImage, proxyServe, sc.Href)
|
|
|
+ _, baseCancel, _, _, ctx, cancel := be.NewBrowser(headless, showImage, proxyServe, sc.Href, sc.FilterResource)
|
|
|
qu.Debug("1浏览器打开", *sc)
|
|
|
vm.dnf.Dispatch("debug_event", "1 浏览器打开")
|
|
|
defer func() {
|
|
@@ -336,7 +336,7 @@ func (vm *VM) InitPageTmp(ctx context.Context, timeout int) bool {
|
|
|
func (vm *VM) CountYestodayArts(url string, listDealy int64, trunPageDelay int64,
|
|
|
headless bool, showImage bool, exit chan bool, currentSpiderConfig *be.SpiderConfig) (count int) {
|
|
|
sc := be.MergeSpiderConfig(currentSpiderConfig, &be.SpiderConfig{Href: url})
|
|
|
- _, baseCancel, _, _, ctx, cancel := be.NewBrowser(headless, showImage, false, sc.Href)
|
|
|
+ _, baseCancel, _, _, ctx, cancel := be.NewBrowser(headless, showImage, false, sc.Href, sc.FilterResource)
|
|
|
qu.Debug("1浏览器打开")
|
|
|
vm.dnf.Dispatch("debug_event", "1 浏览器打开")
|
|
|
defer func() {
|