MoneyPrinter icon indicating copy to clipboard operation
MoneyPrinter copied to clipboard

feat: Using videos from TikTok

Open jhl8041 opened this issue 1 year ago • 3 comments

Using videos from TikTok using TikTok API. When TIKTOK_MS_CODE env exists, it uses videos from Tiktok instead of Pexels

TikTok API: https://github.com/davidteather/TikTok-Api

jhl8041 avatar Feb 10 '24 11:02 jhl8041

Good changes but do the same thing I did and keep the format of video.py and maybe a few others from this,

import requests
import srt_equalizer
import assemblyai as aai
import asyncio
import random

To this:

import asyncio
import random
import requests
import srt_equalizer
import assemblyai as aai

Aka keep the shortest at the start and longest at the end.

WaterPheonix196 avatar Feb 10 '24 14:02 WaterPheonix196

What is the copyright situation with tiktok videos? No point in using them if the resulting video gets a strike when uploaded...

radry avatar Feb 10 '24 14:02 radry

@jhl8041 Did you test whether it works? Also, somehow needs to make sure there aren't pre-made subtitles on the TikToks. That would cause an irritating overlay, maybe use tesseract OCR, or something in that direction.

FujiwaraChoki avatar Feb 10 '24 18:02 FujiwaraChoki

Also can we not remove pexel and let user choose where to get videos from?

Ashes47 avatar Feb 11 '24 08:02 Ashes47

@Ashes47 Where would they get it from? The whole point of this program is to do everything automatically.

radry avatar Feb 11 '24 15:02 radry

it's also a search on tiktok? 🤔

Ashes47 avatar Feb 11 '24 21:02 Ashes47

@Ashes47 couldn't find search feature on TikTok API so I used generating hashtag to search 🫠

jhl8041 avatar Feb 12 '24 03:02 jhl8041

@radry I'm not quite sure with copyrights with TikTok, but I think it wouldn't be that strict if their music is not included..? Not quite sure though..

jhl8041 avatar Feb 12 '24 03:02 jhl8041

@jhl8041 Did you test whether it works? Also, somehow needs to make sure there aren't pre-made subtitles on the TikToks. That would cause an irritating overlay, maybe use tesseract OCR, or something in that direction.

@FujiwaraChoki I'll come up with the solution to avoid overlay subtitles and request PR again. Thanks for the direction

jhl8041 avatar Feb 12 '24 03:02 jhl8041