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.4.0.tar.gz (6.8 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.4.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiktok_collector-0.4.0.tar.gz
  • Upload date:
  • Size: 6.8 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.4.0.tar.gz
Algorithm Hash digest
SHA256 734fb6cd91ccb8812ecf2d508c62068993514dfccf8c7d57d0dcddcba6bcca2f
MD5 b92454b02ddbe1bdf3188289cbb7a1ad
BLAKE2b-256 3a2930ef8463bc89933f7ac109f4c100df8a62e983c4748769f18d57a8e159c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tiktok_collector-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33aca2a3afb9faacbb385d3cf8c8cfaf59dbe1429b476a0a0d1e457c6e37d5e9
MD5 938329575e13ed8167cb377aea9942b2
BLAKE2b-256 bfdc331fb4cf295391d577d313e12ecd97ec53f291103ff89a034cb00a97c200

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