ip_pools

package
v0.0.0-...-632f8f1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAgent

func GetAgent() string

伪造并返回agent

func GetIp

func GetIp() string

随机取redis中的ip进行下一步代理

func GetPosition

func GetPosition() (html []byte, err error)

获取ip源地址IP列表

func SaveIpToRedis

func SaveIpToRedis(content []byte)

将获取到的ip存入本地redis

func SetProxy

func SetProxy() (proxy *url.URL, client *http.Client)

设置proxy并返回client实例

Types

This section is empty.

Jump to

Keyboard shortcuts

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