voletro / TikTokToYT

Downloads a trending TikTok video and uploads it to YouTube.
71 stars 16 forks source link

problem : please make list of trend tiktoks & pick everytime once at sleeptime end #3

Open javazsaz opened 2 years ago

javazsaz commented 2 years ago

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

bilalz666 commented 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:
javazsaz commented 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:

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

javazsaz commented 2 years ago

or if it's possible make changes on main.py to work with these api proxies :

SOCKS5: https://gist.githubusercontent.com/javazsaz/d89e455969ec3ebd706f8541399dc032/raw/7c4a4286ade48e4d3686cf2198cb3e23946abb4f/gistfile1.txt

SOCKS4: https://gist.githubusercontent.com/javazsaz/2e88e610a5dc2a208f537dc1f057cf43/raw/0cea92a3120d8962c4319a8402c0859a2be6b52e/gistfile1.txt

HTTP(S): https://gist.githubusercontent.com/javazsaz/c4bd4c1c28cbcc2504ade696915b56b4/raw/d16315cbba1378b7387fe1374eef160fd2bd1eda/gistfile1.txt

I can change it after done to my personal api grab these from there

waiting for your commit changes :) finest regards

voletro commented 2 years ago

@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.