MCPcopy Create free account

hub / github.com/Lichanglu/pholcus / functions

Functions266 in github.com/Lichanglu/pholcus

↓ 1 callersMethodOutput
(dataIndex int)
pipeline/collector/output.go:11
↓ 1 callersFunctionPhoSocketAccept
* *@服务端用 * *PhoSocketAccept()为幽灵蛛socket同意连接函数 *ln为一个监听句柄 *输出类型为net.Conn,一个握手连接,下一步可以进行接收,发送 */
pholcus/socket/PhoSocket.go:58
↓ 1 callersFunctionPhoSocketSendData
* *@共用 * *PhoSocketSendData()为幽灵蛛socket数据发送函数,但是不关闭 *conn为握手连接,sendData为要发送的数据 *通过conn给client发送Data */
pholcus/socket/PhoSocket.go:88
↓ 1 callersFunctionPhoSocketSendDataClose
* *@服务端用 * *PhoSocketSendDataClose()为幽灵蛛socket数据发送函数,并且关闭连接 *conn为握手连接,sendData为要发送的数据 *通过conn给client发送Data */
pholcus/socket/PhoSocketTest.go:75
↓ 1 callersFunctionPhoSocketSendDataClose
* *@服务端用 * *PhoSocketSendDataClose()为幽灵蛛socket数据发送函数,并且关闭连接 *conn为握手连接,sendData为要发送的数据 *通过conn给client发送Data */
pholcus/socket/PhoSocket.go:75
↓ 1 callersFunctionPhoSoketDial
* *@客户端用 * *PhoSoketDial()为幽灵蛛socket拨号函数,请求服务端 *PhoSocketServer为预定义常量:server:port *输出类型为net.Conn,一个握手连接,下一步可以进行接收,发送 */
pholcus/socket/PhoSocketTest.go:43
↓ 1 callersFunctionPhoSoketLisent
建立连接 func 接受 func 发送 * *@服务端用 * *PhoSoketLisent()为幽灵蛛socket监听函数 *PhoSocketServer为预定义常量:server:port *输出类型为net.Listener,一个监听句柄 */
pholcus/socket/PhoSocket.go:28
↓ 1 callersMethodPostAppendText
(value string)
pholcus/gui/logview.go:74
↓ 1 callersMethodProcess
core processer
pholcus/crawler/crawl.go:88
↓ 1 callersMethodPull
()
common/queue/queue.go:35
↓ 1 callersMethodPush
(i interface{})
common/queue/queue.go:21
↓ 1 callersMethodPushSlice
(s []interface{})
common/queue/queue.go:29
↓ 1 callersMethodRecover
(index int)
pipeline/collector/docker.go:60
↓ 1 callersMethodReport
返回报告
pipeline/collector/collector.go:124
↓ 1 callersMethodRequestIn
()
pholcus/crawler/crawl.go:148
↓ 1 callersMethodRequestOut
()
pholcus/crawler/crawl.go:154
↓ 1 callersMethodSave
Save writes config content to a config file.
common/config/config.go:36
↓ 1 callersMethodSectionGetInt
(section string, key string)
common/config/config.go:220
↓ 1 callersMethodSend
(req context.Request)
pholcus/pholcus.go:45
↓ 1 callersMethodSetCookies
SetHeader save the cookies of http responce
downloader/context/response.go:53
↓ 1 callersMethodSetHeader
SetHeader save the header of http responce
downloader/context/response.go:43
↓ 1 callersMethodSetHtmlParser
SetHtmlParser saves goquery object binded to target crawl result.
downloader/context/response.go:114
↓ 1 callersMethodSetJson
SetJson saves json result.
downloader/context/response.go:137
↓ 1 callersMethodSetRuleName
(ruleName string)
downloader/context/request.go:203
↓ 1 callersMethodSetSpiderId
(spiderId int)
downloader/context/request.go:257
↓ 1 callersFunctionSubmitAndRun
提交用户输入并开始运行
pholcus/gui/guimain.go:236
↓ 1 callersMethodTryOutsource
(req *context.Request)
pholcus/pholcus.go:29
↓ 1 callersMethodUpdata
(src string)
spiders/spider/rss.go:61
↓ 1 callersMethodUse
取出
scheduler/src_manage.go:13
↓ 1 callersMethodWait
(src string)
spiders/spider/rss.go:36
↓ 1 callersMethodcanStop
判断调度中是否还有属于自己的资源运行
pholcus/crawler/crawl.go:163
↓ 1 callersMethodchangeCharsetEncodingAuto
* // 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 callersFunctionconfigpath
Configpath gets default config path like "WD/etc/main.conf".
common/etc_config/etc_config.go:11
↓ 1 callersFunctionconnectByHttp
choose http GET/method to download
downloader/downloader_http.go:170
↓ 1 callersFunctionconnectByHttpProxy
choose a proxy server to excute http GET/method to download
downloader/downloader_http.go:202
↓ 1 callersMethodcsv
************************ CSV 输出 ***************************/
pipeline/collector/output_lib.go:109
↓ 1 callersMethoddockerOne
(data DataCell)
pipeline/collector/collector.go:93
↓ 1 callersMethoddownloadHtml
(p *context.Response, req *context.Request)
downloader/downloader_http.go:260
↓ 1 callersMethoddownloadJson
(p *context.Response, req *context.Request)
downloader/downloader_http.go:289
↓ 1 callersMethoddownloadText
(p *context.Response, req *context.Request)
downloader/downloader_http.go:317
↓ 1 callersMethodgetCaller
GetCaller returns file name and line number at the third step of runtime.
common/mlog/mlog.go:14
↓ 1 callersMethodmgo
************************ MongoDB 输出 ***************************/
pipeline/collector/output_lib.go:177
↓ 1 callersFunctionnewFilelog
The newFilelog returns initialized filelog object. The default file path is "WORKDIR/log/log.2011-01-01".
common/mlog/filelog.go:58
↓ 1 callersFunctionnewStrace
The newStrace returns initialized strace object.
common/mlog/strace.go:29
↓ 1 callersMethodsetReadOnly
(readOnly bool)
pholcus/gui/logview.go:66
↓ 1 callersMethodsetSum
统计数据总量
pipeline/collector/collector.go:119
↓ 1 callersMethodsetTextSelection
(start, end int)
pholcus/gui/logview.go:52
↓ 1 callersMethodsleep
常用基础方法
pholcus/crawler/crawl.go:133
↓ 1 callersMethodtextLength
()
pholcus/gui/logview.go:56
FunctionAcceptAndSend
接收并发送,不关闭
pholcus/socket/PhoSocketTest.go:118
FunctionAcceptAndSend
接收并发送,不关闭
pholcus/socket/PhoSocket.go:118
FunctionAcceptAndSendClose
接收并发送,完关闭
pholcus/socket/PhoSocketTest.go:112
MethodAddHeaderFile
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
MethodAddProxyHost
@host http://localhost:8765/
downloader/context/request.go:170
MethodClear
()
common/config/config.go:40
MethodCollect
(ruleName string, data map[string]string, url string, parentUrl string, downloadTime string)
pipeline/pipeline.go:37
MethodCollect
(dataCell DataCell)
pipeline/collector/collector.go:43
MethodCompare
采集非重复样本并返回对比结果,重复为true
common/deduplicate/deduplicate.go:9
MethodCompare
对比是否已存在,不存在则采样
common/deduplicate/deduplicate.go:23
FunctionConvertToString
(src string, srcCode string, tagCode string)
spiders/spider/common.go:66
MethodCtrlR
()
pipeline/collector/collector.go:54
MethodCtrlS
发送控制通知
pipeline/pipeline.go:16
MethodDeduplicate
对比Url的fingerprint,返回是否有重复
pipeline/pipeline.go:20
MethodDeduplicate
(s string)
pipeline/pipeline.go:46
MethodDownload
(req *context.Request)
downloader/downloader_http.go:36
MethodErrormsg
Errormsg show the download error message.
downloader/context/response.go:68
MethodFree
()
scheduler/src_manage.go:49
FunctionGetCookie
具体的获取cookie的方法,return出一个[]*http.cookie 函数分为两步获取cookie,当有302跳转执行IsRedirectFunc 没有302跳转执行NoRedirectFunc,都是返回[]*http.cookie
pholcus/keeper/login.go:14
MethodGetCookies
GetHeader returns the cookies of http responce
downloader/context/response.go:58
MethodGetHeader
GetHeader returns the header of http responce
downloader/context/response.go:48
MethodGetItem
(idx int)
downloader/context/response.go:83
MethodGetJson
SetJson returns json result.
downloader/context/response.go:143
MethodGetOutFeild
获取任务规则采集语义字段
spiders/spider/spider.go:68
MethodGetRequest
GetRequest returns request oject of self page.
downloader/context/response.go:98
MethodGetSpiderName
()
downloader/context/request.go:207
FunctionGetWDPath
The GetWDPath gets the work directory path.
common/util/util.go:39
MethodGlobalContent
()
common/config/config.go:178
MethodGlobalGetDeadline
(key string)
common/config/config.go:150
MethodGlobalGetDuration
(key string)
common/config/config.go:146
MethodGlobalGetInt64
(key string)
common/config/config.go:134
MethodGlobalGetSliceInt
(key string, separator string)
common/config/config.go:165
MethodGlobalHas
(key string)
common/config/config.go:107
MethodGlobalSet
(key string, value string)
common/config/config.go:118
FunctionInit
(capacity uint)
scheduler/scheduler.go:54
MethodInit
()
spiders/spider/spiderlist.go:7
MethodInit
(sp *spider.Spider)
pholcus/crawler/crawl.go:32
MethodInit
(sp *spider.Spider)
pipeline/pipeline.go:42
MethodInit
(sp *spider.Spider)
pipeline/collector/collector.go:33
MethodIsAllEmpty
()
scheduler/src_manage.go:18
MethodIsAllEmpty
()
scheduler/src_manage.go:60
FunctionIsDirExists
The IsDirExists judges path is directory or not.
common/util/util.go:48
MethodIsEmpty
(spiderId int)
scheduler/src_manage.go:53
FunctionIsFileExists
The IsFileExists judges path is file or not.
common/util/util.go:61
FunctionIsNum
The IsNum judges string is number or not.
common/util/util.go:74
MethodIsOutsource
()
downloader/context/request.go:227
FunctionJsonpToJson
JsonpToJson modify jsonp string to json string Example: forbar({a:"1",b:2}) to {"a":"1","b":2}
common/util/util.go:22
MethodLayoutFlags
()
pholcus/gui/logview.go:40
MethodLen
()
pholcus/gui/guispider.go:112
MethodLess
(i, j int)
pholcus/gui/guispider.go:116
MethodLogError
LogError logs error info.
common/mlog/filelog.go:86
← previousnext →101–200 of 266, ranked by callers