Skip to main content

auto video machine,Upload videos to YouTube using geckodriver, Firefox profiles and Selenium/playwright.

Project description

YTB-UP

Release version PyPi Donate Sponsors

Supported Sites License: Unlicense Commits Last Commit

I have released one draft version of a GUI version to make the usage for those non-coding people that want a one click easy solution. It's been tested by about 5 friends. You can check it out if you sponsor me. You can get the exe version on Windows

Get the early bird version. Please sponsor me here

or click any link you find in the repo

Tiktoka Uploader

Tiktoka Uploader GUI

A cross platform GUI is being developed.

In the future I plan to add more features like invisible watermark to protect your copyright from theft and cross platform publish that you may post videos not only on Youtube.

video demo

English version detailed intro and demo

https://youtu.be/tp69CzU1y7s

https://youtu.be/IXaEQG1BCkw

https://youtu.be/Sqj0uO9VCy4


features included in the GUI version

no limit of video counts

you may got hundreds of historical videos or prepare 200+ viedo for new product.

1000+ is possible especially for backup usage as private

you don't have to edit all metadata one by one

description combine from prefix, suffix and video filename tags combine from preferred tags and ai based generated topic related tags pulish time can automatically set without any effort

auto generate thumbnail from video hightlight

you can using these as startpoint to add overlay text to make it more clickbait to get traffic

auto add Free copyright music

some music is the secret weapon to traffic, you need dig it by yourself.and also not to share with others

invisible watermark

at some day if you got viral someone will steal your content to repost over other platform, cut off your logo or other visible watermark,with this invisible/hidden watermark technology, you can hardless lost the battle

multi-account and multi-channel under one account

as a newbie you will not want to be limited to only using one account. It will save your time to success

auto set schedule time to public for each video

bulk publish. it seems no other lib supports this feature yet

video upload in batch

all you need is choose the video directory

Installed on PC, access from PC and mobile


This project aims to automate the upload process for YouTube Videos. Since videos can only be publicly uploaded through the YouTube Data API by using a Google Workspaces Account (not free!), I decided to figure out a headless uploader using Selenium and Playwright. This approach also bypasses API restrictions (e.g. Rate Limits/Endcards can't be set through the API).There are tons of library existing but not for me .

AS a code dummy, I do accept any advice because my only purpose is to get things working

if you are a selenium guy, pls check main branch, if not just use this playwright branch.

rewrite it with microsoft playwright

  1. speed is much faster than selenium version

  2. you don't have to worry about browser driver any more

  3. more like category setting, auto publish date, subtitle upload etc are considered

USAGE

if there's anything you don't understand, just google it first, for example firefox profile

  1. Download the lastest Firefox, open a new tab and insert:
about:profiles

一般来说 一个youtube帐号要新建一个profile 文件夹可以选在assets下

2.install the Firefox addon, Cookie-Editor,mannually login into your Youtube channel,click the profile icon, choose English language, export and save as cookie.json

  1. if you want to modify source code, use as a library for your project, pls do

git clone https://github.com/wanghaisheng/youtube-auto-upload

pip install -r requirements.txt

python onefile-example.py 

all codes under **ytb_up**, twist them as you wish

  1. There is a selenium and playwright version, choose the one you like switch branches to find it

  2. use existing without modification as a lib

pip install ytb-up
  1. to get started edit onefile-example.py and enter in your CHANNEL_COOKIES path, videopath etc. Then run the file.

features YOU MAY NEED

1. proxy support

auto detect whether need a proxy

2. cookie support

for those with multiple channels under the one Google account

pls check https://github.com/microsoft/playwright/issues/12616

manually change all occurances of no_restriction in your cookies.json file to

   "sameSite": "None",

3. schedule time publish

you can explictly specify a date and time for each video or you can set publish policy and daily public count, for example, daily count is 4, you got 5 videos, then first 4 will be published 1 day after the upload date, the other 1 will be 2 days after the upload date

4. fix Google account verify

if auto verify is not working, you need to manually input verification code into your browser

5.

THANKS TO

  1. https://github.com/ContentAutomation/YouTubeUploader
  2. https://github.com/offish/opplast
  3. other I CAN NOT REMEMBER

6 feed me hamburger

7. Join Online video chat and easily share your desktop for debugging your issues with me

https://vdo.ninja/?room=Youtube_Auto_Upload&broadcast

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ytb-up-0.1.14.tar.gz (29.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ytb_up-0.1.14-py3.9.egg (56.1 kB view details)

Uploaded Egg

ytb_up-0.1.14-py3.8.egg (61.9 kB view details)

Uploaded Egg

ytb_up-0.1.14-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file ytb-up-0.1.14.tar.gz.

File metadata

  • Download URL: ytb-up-0.1.14.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ytb-up-0.1.14.tar.gz
Algorithm Hash digest
SHA256 a5fe249c5af9ea003d298346dffb87a44d43124b18047e188acc58469b8d7c1d
MD5 bfd7799b44f7402f686643017b579642
BLAKE2b-256 9b02c39dd6dbc58d93df70aca8ca35022f44f365f2aaeb3eb1445a566bcf7978

See more details on using hashes here.

File details

Details for the file ytb_up-0.1.14-py3.9.egg.

File metadata

  • Download URL: ytb_up-0.1.14-py3.9.egg
  • Upload date:
  • Size: 56.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ytb_up-0.1.14-py3.9.egg
Algorithm Hash digest
SHA256 a0cc546fcb86676c2662c81e10bb2cc35209d2b1f9e188662d5e671bb3177195
MD5 24eaf772114881f3666384f4621f36cd
BLAKE2b-256 e05ee6326ad8004b04c268cfb34f0bbe3efc6d2d52ccb8db0eaaeb9428498a45

See more details on using hashes here.

File details

Details for the file ytb_up-0.1.14-py3.8.egg.

File metadata

  • Download URL: ytb_up-0.1.14-py3.8.egg
  • Upload date:
  • Size: 61.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ytb_up-0.1.14-py3.8.egg
Algorithm Hash digest
SHA256 d0372be0e88e91d42db9b25ee3e23586e984603a52f211faa3a55feab1867154
MD5 dd2670ec3f8b4a1201db09694d148e3a
BLAKE2b-256 74bb70a16ab88f7a00577ced2716cd727756a77d55d555989b25184d1b2b200c

See more details on using hashes here.

File details

Details for the file ytb_up-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: ytb_up-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ytb_up-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 5da7dc8ce3899d94d0a2d9c8416ed5534c1ff17ab4a92a54f25550a6555488c2
MD5 871d3913468eed74795f332d7c392feb
BLAKE2b-256 e2cdc388e7a6f2fa0344892fc5a68e92bbe37f448aa06a5905d088cdb0bb7c57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page