Simple bash script to grab TikTok user id from the shared link.
Started as a bash script, ended as a python code
TikTok appends the UID of the video sharer to the short link (vt.tiktok.com) as a parameter.
This bash script will curl to the link and take the user_id from the URL and echo it out.
The python code uses request, re, and beautifulsoup to get the user info.
TikTok probably uses this for analytics purposes. This script can help you to discover alt accounts.
- Recode
- Grab user info
- Optimizations
23/3 Recoded in python 23/3 Grabbing user info via beautifulsoup
- Clone to the repo
git clone https://github.com/Nathannaelc/TikTok-UID/
- Change directory to TikTok-UID
cd TikTok-UID
- Run the script
- Bash
bash start.sh
(not recommended) - Python
pip3 install requests
pip3 install beautifulsoup4
python3 start.py