Skip to content

Sign TikTok URLs without using a headless browser

License

Notifications You must be signed in to change notification settings

Spawnrad/SignTok

This branch is 4 commits ahead of, 5 commits behind pablouser1/SignTok:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

734964f · Apr 17, 2023

History

30 Commits
Nov 6, 2022
Nov 5, 2022
Aug 13, 2022
Aug 11, 2022
Apr 17, 2023
Jun 28, 2022
Apr 17, 2022
Aug 12, 2022
Aug 12, 2022
Jun 28, 2022
Mar 6, 2022
Apr 17, 2022
Aug 13, 2022
Apr 17, 2022
Nov 5, 2022
Mar 13, 2023
Jun 4, 2022
Nov 5, 2022

Repository files navigation

SignTok

Sign your TikTok urls easily. This is a port of tiktok-signature using JSDOM

This project allows signing TikTok urls without having to run a headless browser, which lowers ram usage a lot.

Deploy

Installation

Docker

docker pull ghcr.io/pablouser1/signtok:master

Now you can create a container with:

docker run --publish 8080:8080 ghcr.io/pablouser1/signtok:master

Manual

yarn install

Now you can run the server with:

node api/index.js

Usage

Webserver

You can send a POST request to http://localhost:8080/signature with a raw/plain body containing the url

(Content-Type: text/plain)

If you plan to use the already deployed Vercel version, you should use https://signtok.vercel.app/api/signature

You can see some examples here

Cli

node local.js 'YOUR_URL_HERE'

Library

npm install signtok
const SignTok = require('signtok');

const signer = new SignTok();
console.log(signer.sign('URL_HERE'));

TODO

  • Typescript typing
  • Publish to npm with Github Actions

Credits

  • @H1W0XXX for providing a working X-Bogus script

About

Sign TikTok URLs without using a headless browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.6%
  • Dockerfile 6.0%
  • Procfile 0.4%