clawk.js
v1.0.7
Published
Clawk.js — TikTok Info Extractor (fetch public user info by username, CLI + importable module)
Maintainers
Readme
Clawk.js
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.
🚀 Installation
To install Clawk.js via npm:
npm install clawk.js🔧 Usage
You can use Clawk.js in two ways: as a module in your JavaScript code or directly via the CLI.
📦 As a JS module
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');
👩🏻💻 Via CLI
npx clawk usernameBoth 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.
📚 Contributing
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.
⚡ Credits
Original Project: Clawk.sh by Haitham Aouati
This version: Clawk.js – JavaScript port by Davidson N. Fahel
📄 License
This project is licensed under the WTFPL license.
