Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lichanglu/pholcus
/ functions
Functions
266 in github.com/Lichanglu/pholcus
⨍
Functions
266
◇
Types & classes
39
↓ 1 callers
Method
Output
(dataIndex int)
pipeline/collector/output.go:11
↓ 1 callers
Function
PhoSocketAccept
* *@服务端用 * *PhoSocketAccept()为幽灵蛛socket同意连接函数 *ln为一个监听句柄 *输出类型为net.Conn,一个握手连接,下一步可以进行接收,发送 */
pholcus/socket/PhoSocket.go:58
↓ 1 callers
Function
PhoSocketSendData
* *@共用 * *PhoSocketSendData()为幽灵蛛socket数据发送函数,但是不关闭 *conn为握手连接,sendData为要发送的数据 *通过conn给client发送Data */
pholcus/socket/PhoSocket.go:88
↓ 1 callers
Function
PhoSocketSendDataClose
* *@服务端用 * *PhoSocketSendDataClose()为幽灵蛛socket数据发送函数,并且关闭连接 *conn为握手连接,sendData为要发送的数据 *通过conn给client发送Data */
pholcus/socket/PhoSocketTest.go:75
↓ 1 callers
Function
PhoSocketSendDataClose
* *@服务端用 * *PhoSocketSendDataClose()为幽灵蛛socket数据发送函数,并且关闭连接 *conn为握手连接,sendData为要发送的数据 *通过conn给client发送Data */
pholcus/socket/PhoSocket.go:75
↓ 1 callers
Function
PhoSoketDial
* *@客户端用 * *PhoSoketDial()为幽灵蛛socket拨号函数,请求服务端 *PhoSocketServer为预定义常量:server:port *输出类型为net.Conn,一个握手连接,下一步可以进行接收,发送 */
pholcus/socket/PhoSocketTest.go:43
↓ 1 callers
Function
PhoSoketLisent
建立连接 func 接受 func 发送 * *@服务端用 * *PhoSoketLisent()为幽灵蛛socket监听函数 *PhoSocketServer为预定义常量:server:port *输出类型为net.Listener,一个监听句柄 */
pholcus/socket/PhoSocket.go:28
↓ 1 callers
Method
PostAppendText
(value string)
pholcus/gui/logview.go:74
↓ 1 callers
Method
Process
core processer
pholcus/crawler/crawl.go:88
↓ 1 callers
Method
Pull
()
common/queue/queue.go:35
↓ 1 callers
Method
Push
(i interface{})
common/queue/queue.go:21
↓ 1 callers
Method
PushSlice
(s []interface{})
common/queue/queue.go:29
↓ 1 callers
Method
Recover
(index int)
pipeline/collector/docker.go:60
↓ 1 callers
Method
Report
返回报告
pipeline/collector/collector.go:124
↓ 1 callers
Method
RequestIn
()
pholcus/crawler/crawl.go:148
↓ 1 callers
Method
RequestOut
()
pholcus/crawler/crawl.go:154
↓ 1 callers
Method
Save
Save writes config content to a config file.
common/config/config.go:36
↓ 1 callers
Method
SectionGetInt
(section string, key string)
common/config/config.go:220
↓ 1 callers
Method
Send
(req context.Request)
pholcus/pholcus.go:45
↓ 1 callers
Method
SetCookies
SetHeader save the cookies of http responce
downloader/context/response.go:53
↓ 1 callers
Method
SetHeader
SetHeader save the header of http responce
downloader/context/response.go:43
↓ 1 callers
Method
SetHtmlParser
SetHtmlParser saves goquery object binded to target crawl result.
downloader/context/response.go:114
↓ 1 callers
Method
SetJson
SetJson saves json result.
downloader/context/response.go:137
↓ 1 callers
Method
SetRuleName
(ruleName string)
downloader/context/request.go:203
↓ 1 callers
Method
SetSpiderId
(spiderId int)
downloader/context/request.go:257
↓ 1 callers
Function
SubmitAndRun
提交用户输入并开始运行
pholcus/gui/guimain.go:236
↓ 1 callers
Method
TryOutsource
(req *context.Request)
pholcus/pholcus.go:29
↓ 1 callers
Method
Updata
(src string)
spiders/spider/rss.go:61
↓ 1 callers
Method
Use
取出
scheduler/src_manage.go:13
↓ 1 callers
Method
Wait
(src string)
spiders/spider/rss.go:36
↓ 1 callers
Method
canStop
判断调度中是否还有属于自己的资源运行
pholcus/crawler/crawl.go:163
↓ 1 callers
Method
changeCharsetEncodingAuto
* // The acceptableCharset is test for whether Content-Type is UTF-8 or not func (self *HttpDownloader) acceptableCharset(contentTypes []string) bool
downloader/downloader_http.go:147
↓ 1 callers
Function
configpath
Configpath gets default config path like "WD/etc/main.conf".
common/etc_config/etc_config.go:11
↓ 1 callers
Function
connectByHttp
choose http GET/method to download
downloader/downloader_http.go:170
↓ 1 callers
Function
connectByHttpProxy
choose a proxy server to excute http GET/method to download
downloader/downloader_http.go:202
↓ 1 callers
Method
csv
************************ CSV 输出 ***************************/
pipeline/collector/output_lib.go:109
↓ 1 callers
Method
dockerOne
(data DataCell)
pipeline/collector/collector.go:93
↓ 1 callers
Method
downloadHtml
(p *context.Response, req *context.Request)
downloader/downloader_http.go:260
↓ 1 callers
Method
downloadJson
(p *context.Response, req *context.Request)
downloader/downloader_http.go:289
↓ 1 callers
Method
downloadText
(p *context.Response, req *context.Request)
downloader/downloader_http.go:317
↓ 1 callers
Method
getCaller
GetCaller returns file name and line number at the third step of runtime.
common/mlog/mlog.go:14
↓ 1 callers
Method
mgo
************************ MongoDB 输出 ***************************/
pipeline/collector/output_lib.go:177
↓ 1 callers
Function
newFilelog
The newFilelog returns initialized filelog object. The default file path is "WORKDIR/log/log.2011-01-01".
common/mlog/filelog.go:58
↓ 1 callers
Function
newStrace
The newStrace returns initialized strace object.
common/mlog/strace.go:29
↓ 1 callers
Method
setReadOnly
(readOnly bool)
pholcus/gui/logview.go:66
↓ 1 callers
Method
setSum
统计数据总量
pipeline/collector/collector.go:119
↓ 1 callers
Method
setTextSelection
(start, end int)
pholcus/gui/logview.go:52
↓ 1 callers
Method
sleep
常用基础方法
pholcus/crawler/crawl.go:133
↓ 1 callers
Method
textLength
()
pholcus/gui/logview.go:56
Function
AcceptAndSend
接收并发送,不关闭
pholcus/socket/PhoSocketTest.go:118
Function
AcceptAndSend
接收并发送,不关闭
pholcus/socket/PhoSocket.go:118
Function
AcceptAndSendClose
接收并发送,完关闭
pholcus/socket/PhoSocketTest.go:112
Method
AddHeaderFile
point to a json file * xxx.json { "User-Agent":"curl/7.19.3 (i386-pc-win32) libcurl/7.19.3 OpenSSL/1.0.0d", "Referer":"http://weixin.sogou.com/gzh?o
downloader/context/request.go:159
Method
AddProxyHost
@host http://localhost:8765/
downloader/context/request.go:170
Method
Clear
()
common/config/config.go:40
Method
Collect
(ruleName string, data map[string]string, url string, parentUrl string, downloadTime string)
pipeline/pipeline.go:37
Method
Collect
(dataCell DataCell)
pipeline/collector/collector.go:43
Method
Compare
采集非重复样本并返回对比结果,重复为true
common/deduplicate/deduplicate.go:9
Method
Compare
对比是否已存在,不存在则采样
common/deduplicate/deduplicate.go:23
Function
ConvertToString
(src string, srcCode string, tagCode string)
spiders/spider/common.go:66
Method
CtrlR
()
pipeline/collector/collector.go:54
Method
CtrlS
发送控制通知
pipeline/pipeline.go:16
Method
Deduplicate
对比Url的fingerprint,返回是否有重复
pipeline/pipeline.go:20
Method
Deduplicate
(s string)
pipeline/pipeline.go:46
Method
Download
(req *context.Request)
downloader/downloader_http.go:36
Method
Errormsg
Errormsg show the download error message.
downloader/context/response.go:68
Method
Free
()
scheduler/src_manage.go:49
Function
GetCookie
具体的获取cookie的方法,return出一个[]*http.cookie 函数分为两步获取cookie,当有302跳转执行IsRedirectFunc 没有302跳转执行NoRedirectFunc,都是返回[]*http.cookie
pholcus/keeper/login.go:14
Method
GetCookies
GetHeader returns the cookies of http responce
downloader/context/response.go:58
Method
GetHeader
GetHeader returns the header of http responce
downloader/context/response.go:48
Method
GetItem
(idx int)
downloader/context/response.go:83
Method
GetJson
SetJson returns json result.
downloader/context/response.go:143
Method
GetOutFeild
获取任务规则采集语义字段
spiders/spider/spider.go:68
Method
GetRequest
GetRequest returns request oject of self page.
downloader/context/response.go:98
Method
GetSpiderName
()
downloader/context/request.go:207
Function
GetWDPath
The GetWDPath gets the work directory path.
common/util/util.go:39
Method
GlobalContent
()
common/config/config.go:178
Method
GlobalGetDeadline
(key string)
common/config/config.go:150
Method
GlobalGetDuration
(key string)
common/config/config.go:146
Method
GlobalGetInt64
(key string)
common/config/config.go:134
Method
GlobalGetSliceInt
(key string, separator string)
common/config/config.go:165
Method
GlobalHas
(key string)
common/config/config.go:107
Method
GlobalSet
(key string, value string)
common/config/config.go:118
Function
Init
(capacity uint)
scheduler/scheduler.go:54
Method
Init
()
spiders/spider/spiderlist.go:7
Method
Init
(sp *spider.Spider)
pholcus/crawler/crawl.go:32
Method
Init
(sp *spider.Spider)
pipeline/pipeline.go:42
Method
Init
(sp *spider.Spider)
pipeline/collector/collector.go:33
Method
IsAllEmpty
()
scheduler/src_manage.go:18
Method
IsAllEmpty
()
scheduler/src_manage.go:60
Function
IsDirExists
The IsDirExists judges path is directory or not.
common/util/util.go:48
Method
IsEmpty
(spiderId int)
scheduler/src_manage.go:53
Function
IsFileExists
The IsFileExists judges path is file or not.
common/util/util.go:61
Function
IsNum
The IsNum judges string is number or not.
common/util/util.go:74
Method
IsOutsource
()
downloader/context/request.go:227
Function
JsonpToJson
JsonpToJson modify jsonp string to json string Example: forbar({a:"1",b:2}) to {"a":"1","b":2}
common/util/util.go:22
Method
LayoutFlags
()
pholcus/gui/logview.go:40
Method
Len
()
pholcus/gui/guispider.go:112
Method
Less
(i, j int)
pholcus/gui/guispider.go:116
Method
LogError
LogError logs error info.
common/mlog/filelog.go:86
← previous
next →
101–200 of 266, ranked by callers