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.5.2.tar.gz (7.5 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.5.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiktok_collector-0.5.2.tar.gz
  • Upload date:
  • Size: 7.5 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.5.2.tar.gz
Algorithm Hash digest
SHA256 9092836415ed482484316e9cd6e453d5ceafaa07bfcdf5048b328984804d4cb5
MD5 6b10fb0231bfd6a3da12fad313eb18ab
BLAKE2b-256 d3d226c43ffb5de4f926d9ab55a7316b7f113d54c197a07088390109756c1870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tiktok_collector-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 739afb681504e2e08a779529887f89b8d1e041042386b6b00da6ef169126c89e
MD5 b468c181811822b02e9eee3eba55296b
BLAKE2b-256 971836073b770497df9516ea0d4f5e80cdc0a27a9d3160c4b68c703e123a0837

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