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 keyTIKTOK_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
734fb6cd91ccb8812ecf2d508c62068993514dfccf8c7d57d0dcddcba6bcca2f
|
|
| MD5 |
b92454b02ddbe1bdf3188289cbb7a1ad
|
|
| BLAKE2b-256 |
3a2930ef8463bc89933f7ac109f4c100df8a62e983c4748769f18d57a8e159c3
|
File details
Details for the file tiktok_collector-0.4.0-py3-none-any.whl.
File metadata
- Download URL: tiktok_collector-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33aca2a3afb9faacbb385d3cf8c8cfaf59dbe1429b476a0a0d1e457c6e37d5e9
|
|
| MD5 |
938329575e13ed8167cb377aea9942b2
|
|
| BLAKE2b-256 |
bfdc331fb4cf295391d577d313e12ecd97ec53f291103ff89a034cb00a97c200
|