File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,13 @@ package main
22
33import (
44 "fmt"
5- exp "github.com/rapidclock/web-octopus/experimental"
65 "log"
76 "net/http"
87 "time"
8+
9+ adapter2 "github.com/rapidclock/web-octopus/adapter"
10+ exp "github.com/rapidclock/web-octopus/experimental"
11+ oct "github.com/rapidclock/web-octopus/octopus"
912)
1013
1114const (
@@ -16,9 +19,21 @@ const (
1619)
1720
1821func main () {
19- //exp.Test_makeLinksAbsolute()
20- //runPipeline()
21- runPipelineWithOptions ()
22+ // exp.Test_makeLinksAbsolute()
23+ // runPipeline()
24+ // runPipelineWithOptions()
25+ octopusTest ()
26+ }
27+
28+ func octopusTest () {
29+ adapter := & adapter2.StdOpAdapter {}
30+
31+ crawlOpt := oct .GetDefaultCrawlOptions ()
32+ crawlOpt .OpAdapter = adapter
33+
34+ octopus := oct .New (crawlOpt )
35+ octopus .SetupSystem ()
36+ octopus .BeginCrawling (Url2 )
2237}
2338
2439func checkPipelineA () {
Original file line number Diff line number Diff line change 66)
77
88func (o * octopus ) setupValidProtocolMap () {
9+ o .isValidProtocol = make (map [string ]bool )
910 for _ , protocol := range o .ValidProtocols {
1011 o .isValidProtocol [protocol ] = true
1112 }
You can’t perform that action at this time.
0 commit comments