Skip to content

Commit

Permalink
fix: import package
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason committed Sep 22, 2023
1 parent 5ad3e10 commit 91d2dab
Show file tree
Hide file tree
Showing 30 changed files with 39 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/crawler/spiderqueue.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package crawler

import (
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/util"
"github.com/bitxx/pholcus/logs"
)
Expand Down
7 changes: 3 additions & 4 deletions app/spider/common/form.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package common

import (
"github.com/bitxx/pholcus/app/downloader/request"
. "github.com/bitxx/pholcus/app/spider"
"github.com/bitxx/pholcus/common/goquery"
"net/url"
"strings"

"github.com/bitxx/pholcus/common/goquery"

"github.com/bitxx/pholcus/app/downloader/request"
)

// Form is the default form element.
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/IJGUC/IJGUC.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析
// "github.com/bitxx/pholcus/logs" //信息输出
. "github.com/bitxx/pholcus/app/spider" //必需
// . "github.com/bitxx/pholcus/app/spider/common" //选用

// net包
Expand Down
2 changes: 2 additions & 0 deletions pholcus_lib/alibaba/alibaba.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
. "github.com/bitxx/pholcus/app/spider/common" //选用
"github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/logs" //信息输出

Expand Down
2 changes: 2 additions & 0 deletions pholcus_lib/baidunews/baidunews.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
. "github.com/bitxx/pholcus/app/spider/common" //选用
"github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/logs" //信息输出

Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/baidusearch/baidusearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/logs" //信息输出
// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/car_home/car_home.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/chinanews/chinanews.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package pholcus_lib

// 基础包
import (
. "github.com/bitxx/pholcus/app/spider" //必需
// "github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/app/downloader/request" //必需
// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/filetest/filetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package pholcus_lib

// 基础包
import (
. "github.com/bitxx/pholcus/app/spider" //必需
// "github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/app/downloader/request" //必需
// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/ganji_gongsi/ganji_gongsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/googlesearch/googlesearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析
// . "github.com/bitxx/pholcus/app/spider/common" //选用
"github.com/bitxx/pholcus/logs" //信息输出
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/jdsearch/jdsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/logs" //信息输出
// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/jiban/jiban.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package pholcus_lib

import (
"github.com/bitxx/pholcus/app/downloader/request"
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery"
// net包
// "net/http" //设置http.Header
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/jingdong/jdSpider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析
//"github.com/bitxx/pholcus/logs" //信息输出
// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
2 changes: 1 addition & 1 deletion pholcus_lib/kaola/kaola.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
// net包
// "net/http" //设置http.Header
Expand Down
3 changes: 2 additions & 1 deletion pholcus_lib/lewa/lewa.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package pholcus_lib

// 基础包
import (
. "github.com/bitxx/pholcus/app/spider" //必需
// "github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/app/downloader/request" //必需

. "github.com/bitxx/pholcus/app/spider/common" //选用
// net包
"net/http" //设置http.Header
// "net/url"
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/miyabaobei/miyabaobei.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
2 changes: 1 addition & 1 deletion pholcus_lib/people/people.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package pholcus_lib

// 基础包
import (
. "github.com/bitxx/pholcus/app/spider" //必需
"log"

// "github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/app/downloader/request" //必需

Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/qq_avatar/avatar.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/logs" //信息输出
// net包
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/shunfenghaitao/shunfenghaitao.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
2 changes: 2 additions & 0 deletions pholcus_lib/taobao/taobao.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
. "github.com/bitxx/pholcus/app/spider/common" //选用
"github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/logs" //信息输出

Expand Down
2 changes: 2 additions & 0 deletions pholcus_lib/taobaosearch/taobaosearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ package pholcus_lib

// 基础包
import (
. "github.com/bitxx/pholcus/app/spider" //必需
// "github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider/common" //选用
"github.com/bitxx/pholcus/logs" //信息输出

// net包
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/wangyi/wangyi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
2 changes: 2 additions & 0 deletions pholcus_lib/weibo_fans/weibo_fans.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package pholcus_lib
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
. "github.com/bitxx/pholcus/app/spider/common" //选用
"github.com/bitxx/pholcus/common/goquery" //DOM解析
"github.com/bitxx/pholcus/logs" //信息输出

Expand Down
2 changes: 1 addition & 1 deletion pholcus_lib/wukongwenda/wukongwenda.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wukongwenda
import (
// 基础包
"github.com/bitxx/pholcus/app/downloader/request" //必需

. "github.com/bitxx/pholcus/app/spider" //必需
// . "github.com/bitxx/pholcus/app/spider/common" //选用

// net包
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/zhihu_bianji/zhihu_bianji.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package zhihu_bianji
// 基础包
import (
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析
// . "github.com/bitxx/pholcus/app/spider/common" //选用
//"github.com/bitxx/pholcus/logs" //信息输出
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/zhihu_daily/zhihu_daily.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package zhihu_daily
import (
// 基础包
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/zolpc/zolpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
import (
// 基础包
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
1 change: 1 addition & 0 deletions pholcus_lib/zolphone/zolphone.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pholcus_lib
import (
// 基础包
"github.com/bitxx/pholcus/app/downloader/request" //必需
. "github.com/bitxx/pholcus/app/spider" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// . "github.com/bitxx/pholcus/app/spider/common" //选用
Expand Down
3 changes: 2 additions & 1 deletion pholcus_lib/zolslab/zolslab.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
// 基础包
"github.com/bitxx/pholcus/app/downloader/request" //必需
"github.com/bitxx/pholcus/common/goquery" //DOM解析

// "github.com/bitxx/pholcus/logs" //信息输出
. "github.com/bitxx/pholcus/app/spider" //必需
// . "github.com/bitxx/pholcus/app/spider/common" //选用

// net包
Expand Down

0 comments on commit 91d2dab

Please sign in to comment.