Open javazsaz opened 2 years ago
this script will automatically upload to youtube short. if the video downloaded from tiktok is under 60 second. and add proxy to avoid duplicate video. use rotating proxy is best solution for now.
in line 195
def main():
proxy = "your proxy here" # add proxy here
api = TikTokApi.get_instance(proxy=proxy)
trending = api.trending(count=1, custom_verifyFp="")
for tiktok in trending:
this script will automatically upload to youtube short. if the video downloaded from tiktok is under 60 second. and add proxy to avoid duplicate video. use rotating proxy is best solution for now.
in line 195
def main(): proxy = "your proxy here" # add proxy here api = TikTokApi.get_instance(proxy=proxy) trending = api.trending(count=1, custom_verifyFp="") for tiktok in trending:
how to use webshare.io free plan rotating proxy ? example configuration for python is :
import requests
requests.get( "https://ipv4.webshare.io/", proxies={ "http": "http://psplcnda-rotate:ikesnhrnnsp3@p.webshare.io:80/", "https": "http://psplcnda-rotate:ikesnhrnnsp3@p.webshare.io:80/" } ).text
or if it's possible make changes on main.py to work with these api proxies :
I can change it after done to my personal api grab these from there
waiting for your commit changes :) finest regards
@bilalz666 is right, for the moment, we need to use a proxy service to get a different video every time. This seems to be a limitation of the TikTokApi that this uses. I can add a file where people can place their proxy list, so it will use a random one, kind of like the login.json one. I will work on that now.
hi voletro , i found problem in download case from tiktok trends , because all the time pick duplicate video uploaded in Previous section fine, please make list of trend tiktoks Between update api sections & pick every one at sleeptime end & if it's possible upload videos to short youtube videos section . waiting for your response finest regards