Skip to main content

Unoffiical Python 3 TikTok API Wrapper.

Project description

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.

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

PyTok-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyTok-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file PyTok-1.0.0.tar.gz.

File metadata

  • Download URL: PyTok-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.3

File hashes

Hashes for PyTok-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2dd52699fd24e141d11e78c0c0429df62d81600f1ecd9a55a270bfb71d6bfffd
MD5 cdf860db4ea39409044da73feae32594
BLAKE2b-256 618e7354e2b59ff3a3bb1f760df3f8990e8b1bddedef25e3a5edd64eb39be6fe

See more details on using hashes here.

File details

Details for the file PyTok-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyTok-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.3

File hashes

Hashes for PyTok-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc7e2e1e9921afdf08719fa6d2c79853f3070e0edcbc1ab42e19a5e2ce1d1019
MD5 d272c67481d05bc16530dfb84e3cda84
BLAKE2b-256 86f35a6ed117ebdff677b64a82e26d9a9519945b7f41b0844008f6e201855c5a

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