3CatEuforia
This commit is contained in:
@@ -35,11 +35,10 @@ pipeline {
|
|||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
|
|
||||||
# ── Upgrade pip toolchain ──────────────────────────
|
# ── Upgrade pip toolchain ──────────────────────────
|
||||||
. venv/bin/activate
|
venv/bin/pip install --upgrade pip wheel setuptools
|
||||||
pip install --upgrade pip wheel setuptools
|
|
||||||
|
|
||||||
# ── Core dependencies ──────────────────────────────
|
# ── Core dependencies ──────────────────────────────
|
||||||
pip install -U \
|
venv/bin/pip install -U \
|
||||||
atproto \
|
atproto \
|
||||||
playwright \
|
playwright \
|
||||||
playwright-stealth \
|
playwright-stealth \
|
||||||
@@ -53,19 +52,17 @@ pipeline {
|
|||||||
grapheme
|
grapheme
|
||||||
|
|
||||||
# ── yt-dlp: always upgrade to latest ──────────────
|
# ── yt-dlp: always upgrade to latest ──────────────
|
||||||
# TikTok extractor breaks frequently — latest is required
|
venv/bin/pip install --upgrade yt-dlp
|
||||||
pip install --upgrade yt-dlp
|
venv/bin/pip show yt-dlp | grep -E "^(Name|Version)"
|
||||||
pip show yt-dlp | grep -E "^(Name|Version)"
|
|
||||||
|
|
||||||
# ── curl_cffi: TikTok impersonation (REQUIRED) ─────
|
# ── curl_cffi: TikTok impersonation (REQUIRED) ─────
|
||||||
# Without this yt-dlp cannot bypass TikTok bot detection
|
venv/bin/pip install --upgrade curl-cffi
|
||||||
pip install --upgrade curl-cffi
|
venv/bin/pip show curl-cffi | grep -E "^(Name|Version)"
|
||||||
pip show curl-cffi | grep -E "^(Name|Version)"
|
venv/bin/python3 -c "import curl_cffi; print('curl_cffi OK')"
|
||||||
python3 -c "import curl_cffi; print('curl_cffi OK')"
|
|
||||||
|
|
||||||
# ── playwright-stealth version check ───────────────
|
# ── playwright-stealth version check ───────────────
|
||||||
pip show playwright-stealth | grep -E "^(Name|Version)"
|
venv/bin/pip show playwright-stealth | grep -E "^(Name|Version)"
|
||||||
python3 -c "
|
venv/bin/python3 -c "
|
||||||
try:
|
try:
|
||||||
from playwright_stealth import stealth_sync
|
from playwright_stealth import stealth_sync
|
||||||
print('playwright_stealth OK (v1.x - stealth_sync)')
|
print('playwright_stealth OK (v1.x - stealth_sync)')
|
||||||
@@ -75,19 +72,20 @@ except ImportError:
|
|||||||
"
|
"
|
||||||
|
|
||||||
# ── Sanity checks ──────────────────────────────────
|
# ── Sanity checks ──────────────────────────────────
|
||||||
python3 -c "import atproto; print('atproto OK')"
|
venv/bin/python3 -c "import atproto; print('atproto OK')"
|
||||||
python3 -c "import playwright; print('playwright OK')"
|
venv/bin/python3 -c "import playwright; print('playwright OK')"
|
||||||
python3 -c "import yt_dlp; print('yt_dlp OK')"
|
venv/bin/python3 -c "import yt_dlp; print('yt_dlp OK')"
|
||||||
python3 -c "import httpx; print('httpx OK')"
|
venv/bin/python3 -c "import httpx; print('httpx OK')"
|
||||||
python3 -c "import arrow; print('arrow OK')"
|
venv/bin/python3 -c "import arrow; print('arrow OK')"
|
||||||
python3 -c "import moviepy; print('moviepy OK')"
|
venv/bin/python3 -c "import moviepy; print('moviepy OK')"
|
||||||
|
|
||||||
# ── System tools ───────────────────────────────────
|
# ── System tools ───────────────────────────────────
|
||||||
ffmpeg -version | head -1
|
ffmpeg -version | head -1
|
||||||
ffprobe -version | head -1
|
ffprobe -version | head -1
|
||||||
|
|
||||||
# ── Playwright browser binaries ────────────────────
|
# ── Playwright browser binaries ────────────────────
|
||||||
playwright install chromium
|
PLAYWRIGHT_BROWSERS_PATH=/var/jenkins_home/.playwright-browsers \
|
||||||
|
venv/bin/playwright install chromium
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user