An open API service indexing awesome lists of open source software.

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

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