TikTok Scraper

A narrow Python scraper around the unofficial TikTokApi package for hashtag, user, trending, and search extraction into JSON. Useful as a reference for lightweight TikTok research jobs, not as a default scraping platform.

What It Does

The README positions it as a self-hosted alternative to paying for an Apify actor. It supports four modes:

Mode Output shape
hashtag Videos from a hashtag.
user Videos from a user profile.
trending Trending feed scrape.
search Search results.

It outputs JSON and depends on TikTokApi plus Playwright Chromium (pip install TikTokApi; playwright install chromium). The README also calls out msToken support, which is a practical signal: TikTok scraping is fragile and usually fails at auth/fingerprint/rate-limit boundaries, not only at selector boundaries.

Boundaries

Use this only for permitted research or owned-data workflows where TikTok's terms, privacy boundaries, and rate limits are acceptable. It is not Kevin's default browser automation route. Prefer official APIs, exports, or managed vendors when the data matters; route protected scraping questions through Web Scraping Stealth (TLS Fingerprinting & Anti-Bot Evasion) before assuming a GitHub script will hold up.

Source Snapshot

Checked 2026-07-03:

  • Repo: riyagoelrs/tiktok-scraper, HEAD c561ed4f81070a91840719e1175ddb8677cb3f13.
  • GitHub metadata: 150 stars, 15 forks, default branch main, last pushed 2026-05-26.
  • Tags/releases/packages: none found in the checked refs; no package release surface.
  • License: GitHub API returned no license, README says MIT.
  • Brin check: caution, score 65, pending_deep_scan: true.

The page is a tool reference and candidate source, not an adopted executable skill.


Timeline