Skip to main content

Core auto-reup logic for TikTok bots (DB + fetch + auto monitor + auto reup)

Project description

tiktok-autoreup-core

Core auto-reup logic for TikTok bots:

  • SQLite DB for tracked videos/channels
  • Fetch latest videos via yt-dlp
  • Auto-monitor loop
  • Auto reup pipeline (download -> render -> upload)

This package is designed to be embedded into a Telegram bot. It expects the host app to provide dependency callbacks (download/render/upload/caption). Wheels produced by the build scripts are compiled-only and strip all .py files, so import from the submodule (see below).

Basic Usage

from tiktok_autoreup_core.core import AutoReupConfig, AutoReupDeps, AutoReupService

cfg = AutoReupConfig(
    db_path="auto_reup.db",
    output_dir=".",
    owner_id=123456789,
    default_hashtag="#example",
    render_res="1080x1920",
    render_fps=60,
)

deps = AutoReupDeps(
    load_user_data=load_user_data,
    account_cookie_path=account_cookie_path,
    download_video=download_video_ytdlp_subprocess,
    render_video=render_video_ffmpeg,
    upload_video=upload_video_to_tiktok,
    generate_caption=generate_caption,
    animated_progress=animated_progress,
)

svc = AutoReupService(cfg, deps)
svc.init_db()

Build Nuitka (Windows)

scripts\\build_nuitka.ps1

Build Nuitka (Linux)

scripts/build_nuitka.sh

Publish to PyPI

python -m pip install -U twine
python -m twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

tiktok_autoreup_core-0.1.3-cp314-cp314-win_amd64.whl (559.5 kB view details)

Uploaded CPython 3.14Windows x86-64

tiktok_autoreup_core-0.1.3-cp313-cp313-manylinux_2_42_aarch64.whl (727.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.42+ ARM64

File details

Details for the file tiktok_autoreup_core-0.1.3-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d841bf763090c46c4250c2d2176348c4e9c010db77392d6a50d678e4dbb0bde4
MD5 add3edf508ee4cdf12f3f4289c8f8bf6
BLAKE2b-256 da13facb7bd2f5a1d82d6d9d966a5e47d3549a587341e4c985166d33351198b5

See more details on using hashes here.

File details

Details for the file tiktok_autoreup_core-0.1.3-cp313-cp313-manylinux_2_42_aarch64.whl.

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.3-cp313-cp313-manylinux_2_42_aarch64.whl
Algorithm Hash digest
SHA256 a7bde2aa54ab70979768cc56c3a223304032d3617c173c888eecb84cb818b932
MD5 bbc8b3c8e43928199bf1bd3f664b4603
BLAKE2b-256 c34b22f9971a2d1c3ef2b3d74f16bce18fd581870d58a334750e20aa74fb6aa3

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