Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
New mechanism for tiktok without watermark #24563
Comments
@Zipdox , thank you very much. I don’t know if the python version is still needed, but just in case (skipped part with getting video URL from import io
import requests
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--video-url', type=str, dest='video_url', required=True)
args = parser.parse_args()
TIKTOK_GETTER = 'https://api2.musical.ly/aweme/v1/playwm/?video_id={video_id}'
with requests.get(args.video_url, stream=True) as response:
response.raise_for_status()
pos = response.content.find(b'vid:')
bs = io.BytesIO(response.content)
bs.seek(pos+4)
vid = bs.read(32).decode('utf-8')
url = TIKTOK_GETTER.format(video_id=vid)
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0'
}
response = requests.head(url, headers=headers, allow_redirects=True)
print('Output: ', response.url) |
|
againt not working for some videos.. url like https://api2.musical.ly/aweme/v1/playwm/?video_id={video_id} is still working for new videos, perhaps old videos moved to another data server url. Any one else decisions? |
There has been a recent change. The API URL changed and you need a user-agent to fetch the watermarkless video. I wrote a userscript to download TikTok vids without watermark. The gist is that you fetch the watermarked video, search the file for 'vid:' and copy
|
|
Thanks, now it works :) again |
|
https://api2.musical.ly/aweme/v1/playwm/?video_id= is no longer working. Any fix |
Check Zipdox comment bro: #24563 (comment) |
this method don't work on some videoes (secret ID can't be found) please fix |
|
Please provide some video link here. @hamaz562006 |
https://vm.tiktok.com/JjV6gRe/ |
|
@hamaz562006 Tiktok was changed json data and remove videoId in comment metadata for new uploaded videos. |
|
The "vid:" is gone from the file. Is there a new wait to get the hidden video_id? Services like https://snaptik.app/ somehow do it so there must be a way. |
|
TikTok has recently stopped including it in videos. I guess they really don't like us removing watermarks. The TikTok reverse engineering guys are trying hard to figure something out without using the full mobile API but to no avail so far. |
I found a new mechanism for downloading tiktok videos without watermark. I wrote a proof of concept in nodejs but I'm not too experienced with python so if anyone can help implement it that'd be great.