Skip to main content

Asynchronous TikTok API Wrapper

Project description

#ENG

How to use

IMPORT TikTok module

from xh1scr import TikTok

Make task in asynchronous func

async def func():
	await TikTok.run('xh1c2')
	status = await TikTok.status()
	likes = await TikTok.likes()
	followers = await TikTok.followers()
	following = await TikTok.following()
	nickname = await TikTok.nickname()
	avatar = await TikTok.getavatar()

btw u can get list in run

from xh1scr import TikTok
async def func2():
	await TikTok.run(['xh1c2','example','example2','and','more'])
	status = await TikTok.status()
	likes = await TikTok.likes()
	followers = await TikTok.followers()
	following = await TikTok.following()
	nickname = await TikTok.nickname()
	avatar = await TikTok.getavatar()

#RU

Как использовать

Для работы с ним надо сделать task в асинхронной функции (я знаю есть такое же API но с подключенной авторизацией и поиском по id но плюс моего API это удобство использования)

from xh1scr import TikTok
async def func():
	await TikTok.run('xh1c2') 
	status = await TikTok.status() 
	likes = await TikTok.likes()
	followers = await TikTok.followers()
	following = await TikTok.following()
	nickname = await TikTok.nickname()
	avatar = await TikTok.getavatar()

Так же в run можно передать список значений

from xh1scr import TikTok
async def func2():
	await TikTok.run(['xh1c2','example','example2','and','more'])
	status = await TikTok.status()
	likes = await TikTok.likes()
	followers = await TikTok.followers()
	following = await TikTok.following()
	nickname = await TikTok.nickname()
	avatar = await TikTok.getavatar()

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

xh1scr-1.0.5.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

xh1scr-1.0.5-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file xh1scr-1.0.5.tar.gz.

File metadata

  • Download URL: xh1scr-1.0.5.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.3 Windows/10

File hashes

Hashes for xh1scr-1.0.5.tar.gz
Algorithm Hash digest
SHA256 8eb9a82a30bf56350730d298b9c2a8b7847064ffc1497651dc176d019b5e3853
MD5 5de9477038576e583b69ba06579e6692
BLAKE2b-256 35e04c2914d34ba6813cf833e9e36d42af0a2e557c6976111f6db44cb7911e78

See more details on using hashes here.

File details

Details for the file xh1scr-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: xh1scr-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.3 Windows/10

File hashes

Hashes for xh1scr-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5804645675b62f802c5d8efa6911ec765ad92f100de8ba7e85ea3e29e2b892
MD5 90198fc7a26b9d8ff28a27f45dd93c8e
BLAKE2b-256 66cd370c5c6a5f8454ee38c960ed267d7975e1893e06b7ed85734cad4222c32f

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