在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ContentAutomation/YouTubeUploader开源软件地址:https://github.com/ContentAutomation/YouTubeUploader开源编程语言:Python 100.0%开源软件介绍:
AboutThis 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!), we decided to create a headless uploader using Selenium and Docker. This approach also bypasses API restrictions (e.g. Rate Limits/Endcards can't be set through the API). Note: Because the upload process is often updated by Google, the code might not work when you try it! Often, there are only minor changes that have to be made. If you find yourself in this situation, please open an Issue or provide a quick fix in form of a Pull Request to make sure that the codebase stays up to date! This project is for educational purposes only. Automating video uploads to YouTube with automation software might be against YouTube's Terms of Service. Even though our tests went smoothly, one might encounter problems when using the YouTube Uploader extensively. SetupDockerized BrowserTo run the uploader in a headless mode, it needs to connect to a docker container. To test the uploader locally without using docker, this section can be skipped. Otherwise, the docker container can be started by executing the following steps:
Note: On Windows and Mac, docker-compose is already installed when installing docker.
Note: Selenium can now connect to the browser via port 4444. In Python the connection can be established with the following command. driver = webdriver.Remote(
command_executor="http://127.0.0.1:4444/wd/hub",
desired_capabilities=DesiredCapabilities.FIREFOX,
) See
YouTube UploaderThis project requires Poetry to install the required dependencies. Check out this link to install Poetry on your operating system. Make sure you have installed Python 3.8! Otherwise Step 3 will let you know that you have no compatible Python version installed.
Note: This is required so that the uploader is automatically logged in into the YouTube account using the cookies. Performing a Google login through automated software is extremely hard due to Google's bot detection/Login safety features
Note: When using Docker, the video that should be uploaded needs to be in the repository's Run ParametersYou can also get these definitions by running
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论