config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version    = "1.3.0"
	ServerName = "fake115"
	AppVer     = "25.2.2"
	EndString  = "000000"
	UserAgent  = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 " +
		"Safari/537.36 115Browser/23.9.2"

	SpiderCheckInterval = time.Second * spiderCheckIntervalInt

	LinkSep         = "|"
	DirTargetPrefix = "U_1_"
)

Variables

View Source
var (
	RetryTimes = 10
	UserId     = ""
	UserKey    = ""
	Step       = 1150
	// Cookie提供文件读取和命令行设置两种方式;
	// 文件读取提供默认设置和命令行设置两种方式;
	Cookie            = ""
	DefaultCookiePath = "cookies.txt"
	CookiePath        = ""

	TotalSize = 0
	FileCount = 0
	Debug     bool

	WorkerNum     = 5
	WorkerNumRate = 100

	// 是否处于等待人机验证的状态
	// 不是一个重要的状态,且可能的操作中都是在处理网络请
	// 求处理之后,冲突可能极小,不加读写锁,随便改
	SpiderVerification      = false
	SpiderStatWaitAliveTime = 0
	SpiderStatWaitTimeout   = spiderCheckIntervalInt * 3

	Logger = log.InitLogger(ServerName, false)
)

Functions

func GetFakeHeaders

func GetFakeHeaders(withCookie bool) map[string]string

func GetFakeRangeHeaders

func GetFakeRangeHeaders() map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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