Skip to main content

A Python library for collecting TikTok data

Project description

TikTok Collector

A Python library for collecting TikTok data including hashtags and keywords.

Installation

pip install tiktok-collector

Features

  • Collect TikTok posts by hashtag
  • Collect TikTok posts by keyword
  • Export data to various formats (CSV, Excel)
  • Configurable collection parameters

Usage

Collecting by Hashtag

from tiktok_collector import TiktokHashtagCollector

collector = TiktokHashtagCollector()
posts = collector.collect_by_hashtag("#python", limit=100)

Collecting by Keyword

from tiktok_collector import TiktokKeywordCollector

collector = TiktokKeywordCollector()
posts = collector.collect_by_keyword("python programming", limit=100)

Configuration

The library can be configured using environment variables:

  • TIKTOK_API_KEY: Your TikTok API key
  • TIKTOK_API_SECRET: Your TikTok API secret

Requirements

  • Python 3.7+
  • requests>=2.25.1
  • pandas>=1.2.0
  • numpy>=1.19.0
  • python-dotenv>=0.19.0
  • boto3>=1.26.0
  • pytz>=2021.1
  • httplib2>=0.20.0
  • sqlalchemy>=1.4.0
  • openpyxl>=3.1.0

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

tiktok_collector-0.3.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

tiktok_collector-0.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file tiktok_collector-0.3.0.tar.gz.

File metadata

  • Download URL: tiktok_collector-0.3.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for tiktok_collector-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f424c1d1ba5711286e35811794302488dc627bd25bdae263e9ff077bfc9f8c95
MD5 4e84cb414a2d0f5aadc683899f0b9bf5
BLAKE2b-256 2bda7845c443bc4034171525d400e0ec155f1ace7d6a5c4af427de6b81ba969f

See more details on using hashes here.

File details

Details for the file tiktok_collector-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tiktok_collector-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59ab3c55adced6fca8007f0adc2243fdd160d9fbae63afcb5f357d27e7e13246
MD5 67ff493ac1a62c778d208b94e5aaa865
BLAKE2b-256 d9738043ad91a46ef35f163a0de0751bb616df02a6ea202699422f3e3ad2148a

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