Skip to main content

Proxy orqali so‘rov yuborish uchun kutubxona

Project description

Secure Proxy Client

Secure Proxy Client bu xavfsiz va bepul proksi orqali ma'lumotlarni olish uchun async kutubxona. Foydalanish uchun token talab qilinadi.

📌 Xususiyatlari

✅ Xavfsiz proxy orqali so'rov yuborish
Async yordamida tezkor ishlash
✅ Video va boshqa fayllarni yuklab olish imkoniyati


🔧 O'rnatish

pip install secure_proxy

🚀 Foydalanish

📌 Kutubxona asinxron ishlaydi, shuning uchun async kod yozish talab qilinadi. Quyidagi misolda video yuklab olish va saqlash jarayoni ko'rsatilgan.

import asyncio
import aiofiles
from secure_proxy import SecureProxyClient

# 🔑 Proxy tokeningizni shu yerga yozing
PROXY_TOKEN = "your-proxy-token"

# 📌 Yuklab olinadigan video URL manzili
VIDEO_URL = "https://your-video-url.com/video.mp4"

# 📁 Saqlanadigan fayl nomi
OUTPUT_FILE = "video.mp4"

async def download_video():
    """ Video yuklab olish va saqlash """
    client = SecureProxyClient(proxy_token=PROXY_TOKEN)
    
    print("📥 Yuklab olinmoqda...")

    # 🔗 Proxy orqali video faylni yuklab olish
    content, status = await client.request(url=VIDEO_URL)
    
    if status != 200:
        print(f"❌ Xatolik: HTTP {status}")
        return

    # 💾 Faylni saqlash
    async with aiofiles.open(OUTPUT_FILE, "wb") as f:
        await f.write(content)

    print(f"✅ Video muvaffaqiyatli yuklandi! ({OUTPUT_FILE})")

if __name__ == "__main__":
    asyncio.run(download_video())

🎯 Xulosa

🚀 Secure Proxy Client yordamida async uslubida xavfsiz va tezkor proxy orqali so'rov yuborish, fayllarni yuklab olish va saqlash mumkin.

Oson o'rnatish
Asinxron ishlash
Tezkor video yuklab olish

Token olish uchun administrator bilan bog'laning!


🔗 Bog'lanish
📧 Email: abdujalilov2629@gmail.com
💬 Telegram: @abduvohid_dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secure_proxy-0.7.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secure_proxy-0.7.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file secure_proxy-0.7.0.tar.gz.

File metadata

  • Download URL: secure_proxy-0.7.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for secure_proxy-0.7.0.tar.gz
Algorithm Hash digest
SHA256 0808ab41cef166e64c66dec45fd513b928fca338c3f0de74d313cbff5de8ba47
MD5 61f0d247b4dad70d4fc23e4fd4f31487
BLAKE2b-256 8bc76f1702c12c4baef7f832b98e5011046fd0f631852d794e99f636bced9acd

See more details on using hashes here.

File details

Details for the file secure_proxy-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: secure_proxy-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for secure_proxy-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0284ece8d1642ea19658d8bae85422529d69f976cba9192e625e96d7e870287c
MD5 469133e9a688e64407fade308d1b4403
BLAKE2b-256 0b99796fb7d2b0e41a8ce7ca7a0a2dbb6310691d8158737a8e488dd14ea1a0f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page