

'They react well together to be a cleaning powerhouse and bust through stuck-on messes.' 'Mixing salt with something acidic like lemon juice or vinegar is a great combination,' says Koch. print("Input the TikTok URL") url = input() from TikTokApi import TikTokApi api = TikTokApi() video_bytes = api.get_Video_No_Watermark(url) with open("tiktok.mp4", 'wb') as output: output.Obviously, salt works wonders all on its own, but Koch says it can be even better when mixed with something acidic. I hope you’ve enjoyed the article check out my other stories for more TikTok scripts.īelow is the full script for your convenience. with open("tiktok.mp4", 'wb') as output: output.write(video_bytes)Ĭongratulations you’ve downloaded a TikTok video without any watermarks. Now we will have to write the video_bytes to an mp4 file using python, luckily it’s very simple and all we have to add if the next few lines.

video_bytes = api.get_Video_No_Watermark(url) The next segment will retrieve the bytes of the TikTok without a watermark. This imports the library we installed a few steps ago and allows us to be able to interact with it using the api variable. from TikTokApi import TikTokApi api = TikTokApi() This will ask the user to input the URL, then it stores the url into the variable named url, which we will use in the next segment. print("Input the TikTok URL") url = input() Now we will modify the existing script (or you can create a new one), to ask the user for a tiktok url and then it will download the tiktok without a watermark. If the script does not do that visit TikTokApi’s Github page your issue most likely will be already solved in the closed issues section, just search for any errors you may be getting. Run your python script, hopefully it will output data in a python dictionary format. from TikTokApi import TikTokApi api = TikTokApi() print(api.trending()) Type the following into your python script. We will be testing to make sure we are able to retrieve TikTok data from python. Let’s create a new python file and call it whatever you would like. This command should automatically install chromium, but if it doesn’t run the following command. To be able to retrieve the TikTok data from python run the following command to install a library to help us out. In this article you will write a simple python script that will allow you to download TikTok videos without a watermark given the url.
