Skip to main content

video demo

currently I am working on a web and GUI app for those want to have a try, please sponsor me

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. 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 of my only purpose is to get things work

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 dont have to worry browser driver any more

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

steps you can reproduce

if anything you dont understand ,just google it first,for example firefox profile

  1. Download lastest firefox,open new tab and insert:
about:profiles

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

2.install firefox addon, Cookie-Editor,mannually login into youtube channel,click profile icon, choose english language,export a 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/ytb_up
pip install -r requirements.txt

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

  1. if you are dumb as me, wanna a try,run demo project
git clone https://github.com/wanghaisheng/autovideo

conda create -n autovideo python=3.9
conda activate autovideo

pip install -r requirements.txt

python auto_video.py

woola you can see a ugly gui for your demo purpose

  1. use existing without modification as a lib
pip install ytb-up

features YOU MAY NEED

1. proxy support

auto detect whether need a proxy

2. cookie support

for those multiple channels under same google account

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

manually change no_restriction 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

5. seleniumwire

THANKS FOR

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

6 feed me hamburger

1hamburger is good

1hamburger

2hamburger is great

2hamburger

5hamburger I wont need lose weight.

5hamburger

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.13.tar.gz (21.2 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.13-py3.9.egg (56.1 kB view details)

Uploaded Egg

ytb_up-0.1.13-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytb-up-0.1.13.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for ytb-up-0.1.13.tar.gz
Algorithm Hash digest
SHA256 7e0c881375f487b96b834fd87ef46c30675a9560192abf3818fe8d3e5d342912
MD5 1f70340bd7b2599c103ea5d57e64d03f
BLAKE2b-256 3b720a33c1533f09c8444a546e4809fa42e56cde8699d31144d74d6a5fb79c5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ytb_up-0.1.13-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.13-py3.9.egg
Algorithm Hash digest
SHA256 bfea529d11d9c444bee23d0ca8dc723711c49e15d1f71b3172c3eb02e7f96f28
MD5 13af1b5d1abf4defd14e1ae5445460cc
BLAKE2b-256 f3151c1b107cc0e0c739b9ea2151a9f4e055357e0b2885b993da8e9279002abd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ytb_up-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for ytb_up-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 74213b37647fcca6b1555f33f4f14315cfe9f28a3da175e766c3e0752a69ba60
MD5 9db1203f528d68a0185a7d17092f75a4
BLAKE2b-256 757877b651717da3e821e078a9a1b7e79dfcdce6e1811e7a4b03fedb35994468

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