PinguProxy
PinguProxy
  • 요금
  • 블로그
로그인시작하기

문의

info@pinguproxy.com
모든 시스템 정상 운영 중

법적 고지

  • 개인정보 처리방침
  • 쿠키 정책

리소스

  • 무료 도구
  • 통합 가이드
  • 프록시 지역
  • 비교

팔로우

XXTelegramTelegramDiscordDiscordInstagramInstagram

결제 수단

StripeStripe
Credit & Debit CardsSatispayRevolut Pay
© 2026 PinguProxy. 모든 권리 보유. P.IVA: 02776330397
지금 시작1일 체험 · 몇 초 만에 계정 생성
    블로그로 돌아가기

    이 글은 현재 영어로만 제공됩니다.

    영어로 읽기
    Tutorialpythoncoding2분 소요

    Using Python requests in 2025

    IA
    Iacopo Bonandi
    2025. 1. 17. 오후 10:30:00

    🐍 Introduction

    When working with proxies, Python's requests library is a go-to solution for sending HTTP requests efficiently. In this tutorial, we'll explore how to send a request to your endpoint and check if your proxy is working. Let's dive deeper into proxy usage together!


    💻 Setting Up Your Proxy Configuration

    To get started, you need to configure your proxy settings. Follow these step-by-step instructions:

    Step 1: Gather Your Proxy Credentials

    After purchasing a plan on PinguProxy, you’ll find your unique credentials in the dashboard.

    • Username: Your proxy username
    • Password: Your proxy password
    • Proxy IP: The proxy server IP address
    • Proxy Port: The port for the proxy server

    Step 2: Install the requests Library

    Ensure your Python environment has the requests library installed. You can install it by running the following command:

    pip install requests
    

    Step 3: Write the Python Script

    Here’s how to configure and test your proxy with Python:

    import requests
    
    # Step 3.1: Proxy credentials (replace with your values)
    USERNAME = "PROXY_USERNAME"
    PASSWORD = "PROXY_PASSWORD"
    PROXY_IP = "PROXY_IP"
    PROXY_PORT = "PROXY_PORT"
    
    # Step 3.2: Configure proxies
    proxies = {
        "http": f"http://{USERNAME}:{PASSWORD}@{PROXY_IP}:{PROXY_PORT}",
        "https": f"http://{USERNAME}:{PASSWORD}@{PROXY_IP}:{PROXY_PORT}",
    }
    
    # Step 3.3: Define the endpoint
    url = "https://pinguproxy.com/ip"
    
    try:
        # Step 3.4: Send a GET request through the proxy
        response = requests.get(url, proxies=proxies, timeout=10)
        response.raise_for_status()  # Raise an error for bad responses
        print("Your IP Address:", response.text)
    except requests.exceptions.RequestException as e:
        print(f"An error occurred: {e}")
    

    Step 4: Test Your Proxy

    Run the script to verify your proxy configuration. If everything is set up correctly, the endpoint will return the IP address seen by the server, confirming that your proxy works.

    Expected Output

    If the proxy is functional, you’ll see something like this:

    Your IP Address: xxxx:xxxx:xxxx:xxxx::
    

    If there’s an issue, an error message will appear:

    An error occurred: HTTPSConnectionPool(host='pinguproxy.com', port=443): Max retries exceeded with url: /ip (Caused by ProxyError('Cannot connect to proxy'))
    

    🚀 Ready to Get Started?

    You’re now ready to harness the power of PinguProxy! If you have questions or need assistance, our support team is available 24/7 at info@pinguproxy.com.

    🐧 Try PinguProxy today and experience the difference!

    Get Started Now


    📚 Useful Resources

    • Contact Support
    • PinguProxy Dashboard

    Thank you for choosing PinguProxy. Your success is our mission! 💙

    편집 기준

    마지막 업데이트:2025년 3월 5일

    PinguProxy 기사는 기술 팀이 작성하고 검토합니다. 유료 게재를 하지 않으며, 권장 사항은 실제 제품 동작을 반영합니다. 오류를 발견했거나 더 자세한 내용이 궁금하다면 info@pinguproxy.com로 연락해 주세요. 기사를 업데이트하고 수정 내용을 명시하겠습니다.

    팀에 문의하려면 문의하기.

    관련 읽을거리

    사용 사례Web Scraping사용 사례Data for AI사용 사례SERP Monitoring핵심 문서Compare proxy types (datacenter, mobile, residential, TOR)핵심 문서PinguProxy plans & pricing핵심 문서Free proxy & network tools (IP lookup, header checker, UA parser)핵심 문서Proxy setup guides for Python, Scrapy, Playwright, and more핵심 문서Residential proxies by country핵심 문서PinguProxy vs Bright Data, Oxylabs, and other providers