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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file secure_proxy-0.8.0.tar.gz.
File metadata
- Download URL: secure_proxy-0.8.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ac7b7f6091cfb049bb01e7f1636b5931526188ffe8c7f12f853265b18393850
|
|
| MD5 |
c1b5d620b913bc497f28ea6e6466c6fb
|
|
| BLAKE2b-256 |
5e8298a19f5ec61759a9e9118e167d0ebf76a037d7bc2bc1e499d45e865f0fd7
|
File details
Details for the file secure_proxy-0.8.0-py3-none-any.whl.
File metadata
- Download URL: secure_proxy-0.8.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a88f6f796f841d013740469725bae726f09c0e8b5abf5be80a843091a2c39d93
|
|
| MD5 |
26277d8c43042df73fd9cf5fcf4f2e64
|
|
| BLAKE2b-256 |
5bb446608cc9136910f620e4e73daf19d8afd24209dfdcb73c59badeda0dd58f
|