Skip to main content

TikTok Hashtag Collector

A Python package to collect TikTok posts by hashtag using the RapidAPI TikTok API.

Installation

pip install tiktok-hashtag-collector

Usage

from tiktok_hashtag_collector import TiktokHashtagCollector

# Initialize the collector with your RapidAPI key
collector = TiktokHashtagCollector(
    api_key="YOUR_RAPIDAPI_KEY",  # Required: Your RapidAPI key
    country_code="US",            # Optional: Default is "US"
    max_post_by_hashtag=100,      # Optional: Default is 100
    max_hashtag_post_retry=3,     # Optional: Default is 3
    max_profile_retry=3           # Optional: Default is 3
)

# Collect posts for a hashtag
df = collector.collect_posts_by_hashtag("python")

# The DataFrame will contain the following columns:
# - search_method
# - input_kw_hst
# - post_id
# - post_link
# - caption
# - hashtag
# - hashtags
# - created_date
# - num_view
# - num_like
# - num_comment
# - num_share
# - target_country
# - user_id
# - username
# - bio
# - full_name
# - display_url
# - taken_at_timestamp

Requirements

  • Python 3.6+
  • requests
  • pandas
  • boto3

License

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

Metadata

Release files for tiktok-hashtag-collector 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tiktok-hashtag-collector 0.1.2
File Size Uploaded Provenance Actions
tiktok-hashtag-collector-0.1.2.tar.gz 5.7 kB Without provenance Details for tiktok-hashtag-collector-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tiktok-hashtag-collector 0.1.2
File Interpreter ABI Platform Actions
tiktok_hashtag_collector-0.1.2-py3-none-any.whl Python 3 none any Details for tiktok_hashtag_collector-0.1.2-py3-none-any.whl

Total release size: 12.3 kB

Release files / tiktok-hashtag-collector-0.1.2.tar.gz

Download URL tiktok-hashtag-collector-0.1.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6fab69e6727c4ec591f05616c14692efbaff833e01582c1eb45056d0e01ff218
BLAKE2b-256 checksum
How to use checksums
f2cd5ace97a09de17f5524cd2fab66e82ad5b6d71e9265c66b0d77ecca4583ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / tiktok_hashtag_collector-0.1.2-py3-none-any.whl

Download URL tiktok_hashtag_collector-0.1.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e51dd2940b904e3d992a2ff95731af1daa85c3362ee6e31b446293790013f01
BLAKE2b-256 checksum
How to use checksums
d99418a3dfab7d366bcb4f36448079adbe2887850c71896948b978c404176fff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Security for tiktok-hashtag-collector 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page