Skip to main content

Instagram password reset request sender with proxy support, thread isolation, and user-agent rotation (UNOFFICIAL)

Project description

cevreset

Instagram şifre sıfırlama (reset) isteği gönderen UNOFFICIAL araç.

UYARI UYARI UYARI
Bu paket Instagram'ın resmi API'sini kullanmaz.
Instagram ToS'ye aykırı olabilir → hesabınız banlanabilir.
Sadece eğitim, güvenlik araştırması, kendi hesabınızı test etme amacıyla kullanın.
Yazar hiçbir sorumluluk kabul etmez.

Kurulum

pip install cevreset

Yeni Özellikler (v0.3.0)

🎯 Resource Management

  • Context Manager: Otomatik session cleanup
  • Thread-Safe: Her thread kendi session'ı var
  • Proper Cleanup: Tüm kaynaklar release ediliyor

🔄 Proxy Desteği

  • Birden fazla proxy döngü halinde kullanma
  • Her thread farklı proxy ile request gönderme
  • Bloklanma riskini azaltma

🎭 User-Agent Çeşitlendirmesi

  • 5+ farklı Android cihaz simulasyonu
  • Random Device ID, App ID, Timezone
  • Her request'te farklı başlık (headers)

🔐 Thread İzolasyonu

  • Her thread ayrı session alır
  • Her session farklı CSRF token
  • Bağımsız User-Agent ve device info

📝 Logging

  • Debug seviyesi loglama
  • Thread bilgileri
  • Hata detayları

Hızlı Kullanım

Basit Kullanım

from cevreset import InstagramResetClient

with InstagramResetClient(threads=6) as client:
    result = client.send_reset_request("username")
    print(result)

Proxy ile Kullanım

proxies = [
    "http://proxy1:8080",
    "http://proxy2:8080",
    "http://proxy3:8080",
]

with InstagramResetClient(threads=6, proxies=proxies) as client:
    result = client.send_reset_request("username", extract="contact_point")
    print(result)  # "user@example.com" veya None

Batch İşlem

targets = ["user1", "user2", "user3"]

with InstagramResetClient(threads=8, proxies=proxies) as client:
    results = client.send_reset_requests(
        targets=targets,
        extract="contact_point",
        delay_between=3.0
    )
    
    for username, email in results.items():
        print(f"{username}: {email}")

Logging Etkinleştirme

import logging

logging.basicConfig(level=logging.DEBUG)
logging.getLogger("cevreset.client").setLevel(logging.DEBUG)

with InstagramResetClient(threads=6) as client:
    client.send_reset_request("username")

API Reference

InstagramResetClient

Constructor

InstagramResetClient(
    threads: int = 6,                      # Concurrent thread sayısı
    timeout: int = 12,                     # Request timeout (saniye)
    proxies: Optional[List[str]] = None,   # Proxy listesi
    use_random_agents: bool = True         # User-Agent rotation
)

Methods

send_reset_request()
client.send_reset_request(
    target: str,                           # username veya email
    extract: Union[str, List[str], None] = None,  # Field extraction
    delay_before: float = 0                # Öncesinde bekleme
) -> Any

Extract parametresi:

  • None → Tam JSON response
  • "contact_point" → Tek field
  • ["contact_point", "status"] → Çoklu field
  • "field1,field2,field3" → Virgülle ayrılmış
send_reset_requests()
client.send_reset_requests(
    targets: List[str],                    # Hedef listesi
    extract: Union[str, List[str], None] = None,
    delay_between: float = 5.0,            # Hedefler arası bekleme
    verbose: bool = True                   # Log yazdırma
) -> Dict[str, Any]
cleanup()
client.cleanup()  # Tüm session'ları kapat (context manager otomatik yapar)

Mimarı

Thread Modeli

┌─────────────────────────────────────────┐
│ InstagramResetClient (Main)             │
├─────────────────────────────────────────┤
│ ├─ Thread 1 → Session1 → CSRF1 → Header1 │
│ ├─ Thread 2 → Session2 → CSRF2 → Header2 │
│ ├─ Thread 3 → Session3 → CSRF3 → Header3 │
│ └─ Thread N → SessionN → CSFTN → HeaderN │
└─────────────────────────────────────────┘
     ↓
   Instagram API

Şunların hepsi farklı:

  • Session (cookies, state)
  • CSRF Token (her session için ayrı)
  • User-Agent (5+ variant)
  • Device ID
  • App ID
  • Timezone

Resource Cleanup Flow

with InstagramResetClient(...) as client:  # __enter__ çağrılır
    client.send_reset_request(...)         # İşlemler
                                           # Blok sonunda
                                           # __exit__ → cleanup() → sessions kapatılır

Detaylı Örnekler

example_advanced.py dosyasına bakın.

Performans İpuçları

  1. Thread Sayısı: 6-8 optimal (Instagram rate limiting)
  2. Timeout: 12-15 saniye (slow connection için 20+)
  3. Delay Between: 3-5 saniye (batch işlerde)
  4. Proxy: Yüksek kaliteli proxy kullanın

Hata Giderme

"CSRF token alınamadı"

  • İnternet bağlantısını kontrol edin
  • Proxy'lerin çalıştığını kontrol edin
  • Instagram'ın erişilebilir olduğunu kontrol edin

"Tüm requestler başarısız"

  • Instagram sizi bloklamış olabilir
  • Proxy'leri değiştirin
  • Delay'ı artırın

Loglama

import logging
logging.basicConfig(level=logging.DEBUG)

Changelog

v0.3.0 (Yeni)

  • ✅ Context Manager desteği
  • ✅ Proxy desteği (rotating)
  • ✅ Thread başına ayrı session+CSRF
  • ✅ User-Agent rotation
  • ✅ Header çeşitlendirmesi
  • ✅ Logging sistemi
  • ✅ Error handling iyileştirmesi

v0.2.1

  • İlk stabil release

License

MIT

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

cevreset-0.3.2.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

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

cevreset-0.3.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file cevreset-0.3.2.tar.gz.

File metadata

  • Download URL: cevreset-0.3.2.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.1 Linux/6.8.0-1030-azure

File hashes

Hashes for cevreset-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e171d0b5e45ddb5af8518f1519f2f4c99890b8fe0401c8ccbeaf72537306729a
MD5 f42e30881ecbf93c5c75a0294de241ea
BLAKE2b-256 485194e460e476ea203263d763d7f37b95e77c9a2e235b53c40783d357feaaba

See more details on using hashes here.

File details

Details for the file cevreset-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: cevreset-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.1 Linux/6.8.0-1030-azure

File hashes

Hashes for cevreset-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8513d09e76ad79f3cc3933eb8ff54a8b6b1daad30b3be839e63cdba05a4cba3
MD5 b7b5bb069e9e117c8e53a4cf8e178b4f
BLAKE2b-256 becf3b1e37d551e35c42fb6b12b051cd98037078630c258517f8205c90c1636c

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