spider_handler

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Md5File = "md5.txt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SpiderSync

type SpiderSync struct {
	Spider model.Spider
}

func (*SpiderSync) AfterRemoveDownCreate

func (s *SpiderSync) AfterRemoveDownCreate()

func (*SpiderSync) CheckDownLoading

func (s *SpiderSync) CheckDownLoading(spiderId string, fileId string) (bool, string)

检测是否已经下载中

func (*SpiderSync) CheckIsScrapy

func (s *SpiderSync) CheckIsScrapy()

func (*SpiderSync) CreateMd5File

func (s *SpiderSync) CreateMd5File(md5 string)

func (*SpiderSync) Download

func (s *SpiderSync) Download()

下载爬虫

func (*SpiderSync) GetLockDownloadKey

func (s *SpiderSync) GetLockDownloadKey(spiderId string) string

获得下载锁的key

func (*SpiderSync) InstallDeps

func (s *SpiderSync) InstallDeps()

install dependencies

func (*SpiderSync) RemoveDownCreate

func (s *SpiderSync) RemoveDownCreate(md5 string)

func (*SpiderSync) RemoveSpiderFile

func (s *SpiderSync) RemoveSpiderFile()

删除本地文件

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL