wkaisertexas / tiktok-uploader

Automatically ⬆️ upload TikTok videos
https://pypi.org/project/tiktok-uploader/
MIT License
390 stars 91 forks source link

Video scheduling #21

Closed MrUnreal closed 1 year ago

MrUnreal commented 1 year ago

Heya - I started adding video scheduling to this - I was wondering, do you want other people to raise PRs against your code or do you prefer solo contribution ?

wilsonricardopereirasilveira commented 1 year ago

very nice, if you fork it, lets me know to clone your fork. Thank you.

wkaisertexas commented 1 year ago

Other people being willing to work on your code is a great complement. I would be happy to answer any questions which you may have.

From an organization perspective, setting a scheduled time should be an extra step for upload.py's complete_upload_form function which goes sequentially to upload the video.

Adding a scheduling step after _set_description would be great. When selecting DOM elements, I only ask that the sector paths be put into config.toml.

XavierZambrano commented 1 year ago

I'm working on it, in a few days I will make a PR

https://github.com/XavierZambrano/tiktok-uploader

ashevs commented 1 year ago

hi @XavierZambrano xavier , how to add command schedule in below commnd

from tiktok_uploader.upload import upload_videos from tiktok_uploader.auth import AuthBackend

videos = [ { 'video': 'video0.mp4', 'description': 'Video 1 is about ...' }, { 'video': 'video1.mp4', 'description': 'Video 2 is about ...' } ]

auth = AuthBackend(cookies='cookies.txt') failed_videos = upload_videos(videos=videos, auth=auth)

for video in failed_videos: # each input video object which failed print(f'{video['video']} with description "{video['description']}" failed')

XavierZambrano commented 1 year ago

@ashevs check my fork https://github.com/XavierZambrano/tiktok-uploader

import datetime
schedule = datetime.datetime(2020, 12, 20, 13, 00)
upload_video(..., schedule=schedule)
wkaisertexas commented 1 year ago

Great PR @XavierZambrano. Sorry reviewing it took me too long