Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

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

Open
javazsaz opened this issue Aug 19, 2021 · 4 comments

Comments

@javazsaz
Copy link

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
Copy link

bilalz666 commented Aug 19, 2021

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
Copy link
Author

javazsaz commented Aug 19, 2021

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
Copy link
Author

javazsaz commented Aug 19, 2021

@voletro
Copy link
Owner

voletro commented Aug 19, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants