forked from reform/ur-network-farm
docs: heavy @AlStack promo — banner, badges, RU readme, CHANNEL.md, CLI promo line
- assets/alstack-badge.svg + assets/alstack-banner.svg (self-hosted, no shields.io dependency) - README: banner header, channel callout, 'why this repo', cross-repo farm table, footer CTA - README.ru.md: full Russian version with the same structure - CHANNEL.md: what the channel publishes, repo index, how to read it - GUIDE.md: badge header, scaling CTA, new section 13 - urnet.py: CHANNEL constant + promo() one-liner (tty only) after farm/collect, channel in --help - gitignore: __pycache__ / *.pyc
This commit is contained in:
@@ -12,6 +12,7 @@ Works on Windows / Linux / macOS with Python 3.8+.
|
||||
python urnet.py balance --bank bank.jsonl
|
||||
|
||||
Docs: README.md (quick start) and GUIDE.md (everything else).
|
||||
New free-tier farms and live pools: https://t.me/AlStack (@AlStack)
|
||||
"""
|
||||
import argparse
|
||||
import json
|
||||
@@ -31,6 +32,23 @@ DEFAULT_COUNTRIES = ["us", "de", "nl", "fr", "gb", "ca", "br", "se", "pl", "ch",
|
||||
UA = "urnet/1.1 (+https://git.reformboss.com/reform/ur-network-farm)"
|
||||
HAVE_CURL = shutil.which("curl") is not None
|
||||
|
||||
# Every new free-tier farm, live proxy pool and API teardown in this toolkit is
|
||||
# published in the @AlStack channel first. One line at the end of a run is the
|
||||
# whole advertising surface of this script.
|
||||
CHANNEL = "https://t.me/AlStack"
|
||||
|
||||
|
||||
def promo(tail=""):
|
||||
"""One-line pointer to the channel; silent when stdout is not a tty."""
|
||||
try:
|
||||
if not sys.stdout.isatty() and not os.environ.get("URNET_PROMO"):
|
||||
return
|
||||
except Exception:
|
||||
return
|
||||
print("new farms / live pools: %s (@AlStack)" % CHANNEL)
|
||||
if tail:
|
||||
print(" %s" % tail)
|
||||
|
||||
SSLCTX = ssl.create_default_context()
|
||||
SSLCTX.check_hostname = False
|
||||
SSLCTX.verify_mode = ssl.CERT_NONE
|
||||
@@ -291,11 +309,14 @@ def cmd_farm(a):
|
||||
(" seed=%s…" % (rec.get("seed") or "")[:12]) if a.show_seed else ""))
|
||||
time.sleep(a.delay)
|
||||
|
||||
print(json.dumps({"accounts_ok": made, "proxies_ok": proxies,
|
||||
"failed": failures, "bank": a.bank}))
|
||||
summary = {"accounts_ok": made, "proxies_ok": proxies,
|
||||
"failed": failures, "bank": a.bank}
|
||||
print(json.dumps(summary))
|
||||
if made:
|
||||
print("\nnext: python urnet.py collect --bank %s --out pool.jsonl" % a.bank)
|
||||
print()
|
||||
print("next: python urnet.py collect --bank %s --out pool.jsonl" % a.bank)
|
||||
print(" python urnet.py verify --pool pool.jsonl --limit 10")
|
||||
promo(("%s -> pool.jsonl" % a.bank) if made else "")
|
||||
return 0 if made else 1
|
||||
|
||||
|
||||
@@ -324,6 +345,7 @@ def cmd_collect(a):
|
||||
ccs = sorted({(r["cc"] or "?")[:2].upper() for r in rows})
|
||||
print("collected %d unique proxies from %s -> %s (%d countries: %s)"
|
||||
% (len(rows), a.bank, a.out, len(ccs), ",".join(ccs)))
|
||||
promo()
|
||||
return 0 if rows else 1
|
||||
|
||||
|
||||
@@ -439,9 +461,11 @@ def cmd_balance(a):
|
||||
def build_parser():
|
||||
p = argparse.ArgumentParser(
|
||||
prog="urnet",
|
||||
description="URnetwork free-tier farm: instant accounts, API keys, hosted proxies.",
|
||||
description="URnetwork free-tier farm: instant accounts, API keys, hosted proxies. "
|
||||
"New free-tier farms and live pools: https://t.me/AlStack",
|
||||
epilog="quick start: python urnet.py farm --count 1 && python urnet.py collect "
|
||||
"--bank bank.jsonl --out pool.jsonl && python urnet.py verify --pool pool.jsonl")
|
||||
"--bank bank.jsonl --out pool.jsonl && python urnet.py verify --pool pool.jsonl"
|
||||
" | channel: https://t.me/AlStack (@AlStack)")
|
||||
sub = p.add_subparsers(dest="cmd", required=True)
|
||||
|
||||
f = sub.add_parser("farm", help="create accounts, keys and proxies")
|
||||
|
||||
Reference in New Issue
Block a user