Mass ruff auto-fix:
- ruff check --fix: 109 issues fixed (F401 unused imports,
I001 unsorted imports, UP037 quoted annotations, SIM105
suppressible exception, RUF100 unused-noqa)
- ruff check --fix --unsafe-fixes: 22 additional issues
- ruff format: 70 files reformatted
- Manual pass: fix 16 misplaced import httpx lines
- Manual pass: fix remaining E402 (import-after-docstring)
Result: 283 errors -> 30 errors.
The remaining 30 are real issues that need manual review:
5 F401 unused-import (likely auto-generated stubs)
5 F821 undefined-name (real bugs in code that references
redis/pydantic/LLMRegistry without imports)
3 BLE001 (the compliance LLM fallback is intentional; the
other two are real)
3 RUF012 mutable-class-default
3 SIM105, 3 SIM117, 2 E722, 2 E741
1 B007, 1 B025, 1 E402, 1 RUF200 (pyproject.toml issue)
Tests: 436/437 pass (1 pre-existing SSE sandbox failure).
format check + import sort: now clean.
make ci: still gated on the 30 remaining real issues.
Follow-up: triage the 30 issues file-by-file.
54 lines
2.1 KiB
Python
54 lines
2.1 KiB
Python
# SPDX-License-Identifier: MIT
|
|
# Copyright (c) 2026 Rug Munch Media LLC
|
|
#
|
|
# Part of Pry - https://git.rugmunch.io/RugMunchMedia/pryscraper
|
|
# Licensed under MIT. See LICENSE.
|
|
|
|
"""Proxy provider referral links — monetize Pry by referring users to proxy services."""
|
|
|
|
from __future__ import annotations
|
|
|
|
# Each provider has a referral URL and commission structure
|
|
# When a user configures a proxy through Pry, we can offer a discount link
|
|
# that earns us a commission on their subscription
|
|
|
|
PROVIDER_REFERRALS = {
|
|
"brightdata": {
|
|
"name": "Bright Data",
|
|
"referral_url": "https://brightdata.com/cp/start?promo=munchcrawl",
|
|
"promo_code": "MUNCHCRAWL30",
|
|
"commission": "Up to $500/mo per referral (recurring)",
|
|
"description": "30% first payment bonus. Best residential proxies on the market.",
|
|
"tier": "premium",
|
|
},
|
|
"oxylabs": {
|
|
"name": "Oxylabs",
|
|
"referral_url": "https://oxylabs.io/?tap_a=114931-8c3b7a&tap_s=3621085-4c2e5b",
|
|
"commission": "30% recurring commission",
|
|
"description": "Enterprise-grade proxies. Great for heavy scraping.",
|
|
"tier": "premium",
|
|
},
|
|
"smartproxy": {
|
|
"name": "Smartproxy",
|
|
"referral_url": "https://smartproxy.com/?utm_source=partner&utm_medium=referral&partner=munchcrawl",
|
|
"commission": "20% recurring commission",
|
|
"description": "Good value residential and datacenter proxies.",
|
|
"tier": "standard",
|
|
},
|
|
"iproyal": {
|
|
"name": "IPRoyal",
|
|
"referral_url": "https://iproyal.com/?r=munchcrawl",
|
|
"promo_code": "PRY20",
|
|
"commission": "25% recurring commission + $20 bonus for referred user",
|
|
"description": "Budget-friendly residential proxies. Pay-per-IP option.",
|
|
"tier": "budget",
|
|
},
|
|
"webshare": {
|
|
"name": "Webshare",
|
|
"referral_url": "https://webshare.io/?referral=munchcrawl",
|
|
"promo_code": "PRYFREE10",
|
|
"commission": "$1 per referral + 10% recurring",
|
|
"description": "Free tier available. Cheap datacenter proxies.",
|
|
"tier": "budget",
|
|
},
|
|
}
|