https://github.com/yaasiin-ayeva/tiktok.js
A Tiktok client library for NodeJS that connects through the TikTok Web browser app
https://github.com/yaasiin-ayeva/tiktok.js
Last synced: 5 months ago
JSON representation
A Tiktok client library for NodeJS that connects through the TikTok Web browser app
- Host: GitHub
- URL: https://github.com/yaasiin-ayeva/tiktok.js
- Owner: yaasiin-ayeva
- License: gpl-3.0
- Created: 2024-09-08T00:49:15.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T03:21:36.000Z (8 months ago)
- Last Synced: 2024-11-07T04:52:04.004Z (7 months ago)
- Language: TypeScript
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tiktokjs
A Tiktok client library for NodeJS that connects through the TikTok Web browser app## Installation
```bash
npm install tiktokjs
```## How to run the script
Kindly set you environment variables from the `.env.test` file.
```bash
cp .env.test .env
```Replace the CLIENT and PASSWORD variables in the `.env` file with your credentials and run the following command:
```bash
ts-node src/test.ts
```## Usage
```ts
import { TikTokClient } from './client';
const dotenv = require('dotenv');
dotenv.config();
const { CLIENT, PASSWORD } = process.env;(async () => {
const clientId = CLIENT;
const client = new TikTokClient();
await client.authenticate(CLIENT, PASSWORD);
})();
```## TODO
- [x] Complete Authentication
- [ ] Browser Pooling for multiple sessions
- [ ] Workers for multiple sessions and re-use sessions
- [x] Complete Session Management
- [ ] Complete Session Finalization
- [ ] Complete Session Refresh
- [ ] Complete Session Deletion & Cleanup
- [x] Add upload function
- [ ] Add native post schedule function
- [ ] Add download function
- [ ] Add get function
- [ ] Add delete function
- [x] Add search function