proxyscraper

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

README

Example

package main

import (
	"fmt"
	"log"
	"time"

	"github.com/Pix4Devs/pix4lib/proxyscraper/proxyscraper"
)

func main(){
	client := proxyscraper.NewClient(time.Duration(time.Second * 5))
	proxies, err := client.Execute(); if err != nil {
		log.Fatal(err)
	}

	for _, proxy := range proxies {
		fmt.Println(proxy)
	}
}

Documentation

Index

Constants

View Source
const (
	API = "https://api.proxyscrape.com/v2/?request=displayproxies&protocol=all&timeout=10000&country=all&ssl=all&anonymity=all"
)
View Source
const (
	VERSION = "1.0.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
}

func NewClient

func NewClient(timeout time.Duration) *Client

func (*Client) Execute

func (c *Client) Execute() ([]string, error)

Jump to

Keyboard shortcuts

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