Ihren Scraper in einer Zeile verbinden
Welches Werkzeug Sie auch nutzen, dasselbe Gateway funktioniert: ein host:port und ein Benutzername:Passwort-Paar genügen.
- Gateway
- gate.proxynet.io
- Port
- 8000
- Protokolle
- HTTP · HTTPS · SOCKS5
- Authentifizierung
- user:pass oder IP-Whitelist
In Scrapy stellen Sie ihn über DOWNLOADER_MIDDLEWARES ein, in Playwright oder Selenium übergeben Sie denselben Proxy-Server in den Startoptionen des Browsers.
# Trage den Benutzernamen und das Passwort aus deinem Panel ein
curl -x "http://KULLANICI:SIFRE@gate.proxynet.io:8000" https://api.ipify.org
import requests
# HTTPS-Datenverkehr wird ebenfalls als http://-URL übergeben; der Tunnel wird per CONNECT aufgebaut.
proxy = "http://KULLANICI:SIFRE@gate.proxynet.io:8000"
r = requests.get(
"https://api.ipify.org",
proxies={"http": proxy, "https": proxy},
timeout=15,
)
print(r.text.strip())
import { ProxyAgent, fetch } from "undici"
// Ein einzelner Agent reicht für HTTP- und HTTPS-Anfragen aus.
const agent = new ProxyAgent("http://KULLANICI:SIFRE@gate.proxynet.io:8000")
const res = await fetch("https://api.ipify.org", { dispatcher: agent })
console.log(await res.text())
package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
proxy, _ := url.Parse("http://KULLANICI:SIFRE@gate.proxynet.io:8000")
client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxy)}}
res, err := client.Get("https://api.ipify.org")
if err != nil {
panic(err)
}
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
<?php
$ch = curl_init("https://api.ipify.org");
curl_setopt_array($ch, [
CURLOPT_PROXY => "http://gate.proxynet.io:8000",
CURLOPT_PROXYUSERPWD => "KULLANICI:SIFRE",
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch);
curl_close($ch);
using System.Net;
var proxy = new WebProxy("http://gate.proxynet.io:8000")
{
Credentials = new NetworkCredential("KULLANICI", "SIFRE"),
};
using var client = new HttpClient(new HttpClientHandler { Proxy = proxy });
Console.WriteLine(await client.GetStringAsync("https://api.ipify.org"));