Skip to main content

PyTok - Python 3 TikTok API Wrapper

PyTok is the latest python API wrapper for tiktok. More flexibility, more data, more enagement.

Installation

Use the package manager pip to install PyTok.

pip install PyTok

Usage

import PyTok as pt
import json

#Full Scrape - Return all user data.

# returns '{"Followers": 3183, "Likes": "247200", "Video Views": 3079200}'
No_Comments = json.loads(pt.full_scrape('reddit_a.i.t.a', comments=False))

#*COMMENTS CAN TAKE A LONG TIME TO LOAD DEPENDING ON # of VIDEOS*
# returns full_scrape + comments + comment likes. 
#'{"Followers": 3183, "Likes": "247200", "Video Views": 3079200, "Comments": {'Example Comment': 1}}'
# min_likes will default to 0 to show all comments. Comments with likes > or = to the min_likes will return.
With_Comments = pt.full_scrape('reddit_a.i.t.a', comments=True, min_likes=1)


#Individual Scrape - Return individual user data.

# returns 247300.
pt.get_likes("reddit_a.i.t.a")
No_Comments['Likes']

# returns 3183.
pt.get_followers('reddit_a.i.t.a')
No_Comments['Followers']

# returns 3079200.
pt.get_video_views('reddit_a.i.t.a')
No_Comments['Video Views']

#*COMMENTS CAN TAKE A LONG TIME TO LOAD DEPENDING ON # of VIDEOS*
# returns "Comments": {'Example Comment': 1}
pt.get_video_views('reddit_a.i.t.a')
No_Comments['Comments']

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Credits

All rights reserved by John Sandoval. Creator of PyTok 2022.

Metadata

Release files for PyTok 1.0.0

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

Source distribution (sdist)

Source distribution for PyTok 1.0.0
File Size Uploaded Provenance Actions
PyTok-1.0.0.tar.gz 3.8 kB Without provenance Details for PyTok-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyTok 1.0.0
File Interpreter ABI Platform Actions
PyTok-1.0.0-py3-none-any.whl Python 3 none any Details for PyTok-1.0.0-py3-none-any.whl

Total release size: 7.9 kB

Release files / PyTok-1.0.0.tar.gz

Download URL PyTok-1.0.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2dd52699fd24e141d11e78c0c0429df62d81600f1ecd9a55a270bfb71d6bfffd
BLAKE2b-256 checksum
How to use checksums
618e7354e2b59ff3a3bb1f760df3f8990e8b1bddedef25e3a5edd64eb39be6fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.3

Release files / PyTok-1.0.0-py3-none-any.whl

Download URL PyTok-1.0.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc7e2e1e9921afdf08719fa6d2c79853f3070e0edcbc1ab42e19a5e2ce1d1019
BLAKE2b-256 checksum
How to use checksums
86f35a6ed117ebdff677b64a82e26d9a9519945b7f41b0844008f6e201855c5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.3

Security for PyTok 1.0.0

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

1.0.0 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