Clawk.js is a JavaScript rewritten version of the Clawk project, originally developed by Haitham Aouati. This project allows you to extract public information from TikTok profiles, such as follower count, videos, likes, and other statistics, using only the username.
To install Clawk.js via npm:
npm install clawk.jsYou can use Clawk.js in two ways: as a module in your JavaScript code or directly via the CLI.
JavaScript
import { getUserInfo } from 'clawk.js';
async function fetchUserInfo(username) {
try {
const userInfo = await getUserInfo(username);
console.log(userInfo);
} catch (error) {
console.error('Error fetching user information:', error);
}
}
fetchUserInfo('username_to_fetch');
npx clawk username
Both methods return the profile's public information, including:
- User ID
- Username (uniqueId)
- Nickname
- Signature / biography
- Follower, video, and like counts
- Avatar URLs
- Verification, private account status, etc.
Replace 'username' with the desired TikTok username.
Contributions are welcome!
To contribute:
- Fork this repository.
- Create a new branch:
git checkout -b my-new-feature - Make your changes and commit:
git commit -am 'Adds new feature' - Push to the branch:
git push origin my-new-feature - Open a Pull Request.
-
Original Project: Clawk.sh by Haitham Aouati
-
This version: Clawk.js – JavaScript port by Davidson N. Fahel
This project is licensed under the WTFPL license.