Skip to main content

Some tool

Project description

PyPi Package Version Downloads

Server

import asyncio

from playwright.async_api import async_playwright
from tiktok_signature.server import make_server


async def main():
    async with async_playwright() as playwright:
        server = await make_server(playwright=playwright, host="127.0.0.1", port=8002)
        await server.start()
        await asyncio.Event().wait()

asyncio.run(main())

As package

import asyncio

from tiktok_signature import Signer
from playwright.async_api import async_playwright


async def main():
    async with async_playwright() as playwright:
        signer = Signer(playwright=playwright)
        await signer.init()
        await signer.sign("url")

asyncio.run(main())

Docker

You can build image yourself

docker build . -t tiktok-signature

Or start with the second command and use the ready image

docker run --name=tiktok-signature --restart=always -p 8002:8002 -e port=8002 sheldygg/tiktok-signature

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

tiktok_signature-1.3.tar.gz (82.0 kB view hashes)

Uploaded Source

Built Distribution

tiktok_signature-1.3-py2.py3-none-any.whl (81.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page