-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfind_dropshippers.py
More file actions
59 lines (46 loc) · 1.81 KB
/
find_dropshippers.py
File metadata and controls
59 lines (46 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"""
Filter out dropshippers from a list of candidate WooCommerce stores.
Useful for:
- Investment due diligence (avoid risky brands)
- Lead generation (skip stores that won't convert)
- Niche research (find legit operators in a category)
export APIFY_API_TOKEN=apify_api_xxxxxx
python examples/find_dropshippers.py
"""
from woocommerce_analyzer import WooCommerceAnalyzerClient
CANDIDATES = [
"https://woocommerce.com",
# Add more candidates here — paste 100s
]
def main() -> None:
client = WooCommerceAnalyzerClient()
results = client.analyze(CANDIDATES, max_concurrency=5)
legit = []
medium = []
risky = []
for r in results:
if not r.get("success"):
continue
bucket = r.get("dropshipper_risk_bucket")
if bucket == "low":
legit.append(r)
elif bucket == "medium":
medium.append(r)
else:
risky.append(r)
def _print(group, label) -> None:
print(f"\n=== {label} ({len(group)}) ===")
for r in group:
score = r.get("dropshipper_risk_score", 0)
visits = (r.get("traffic") or {}).get("monthly_visits") or 0
rev = (r.get("revenue_estimate") or {}).get("monthly_revenue_usd_est") or 0
age = r.get("estimated_brand_age_years") or "?"
print(f" {r.get('domain', '?'):<30} risk={score:>3} • "
f"{visits:>8,} visits • ${rev:>10,.0f}/mo • age={age}y")
for reason in (r.get("dropshipper_signals") or [])[:3]:
print(f" ↳ {reason}")
_print(legit, "LEGIT brands (recommended)")
_print(medium, "MEDIUM risk (manual review)")
_print(risky, "HIGH risk (likely dropshippers — skip)")
if __name__ == "__main__":
main()