tubein is a VOD service to altCensored.com uploader, based on tubeup and tubeup_ac
tubein uses yt-dlp to download a Youtube video (or any other provider supported by yt-dlp), and then uploads it with a metadata json to altCensored.com.
tubeup was designed by the Bibliotheca Anonoma to archive single videos, playlists (see warning below about more than video uploads) or accounts to the Internet Archive.
Prerequisites
This script strongly recommends Linux or some sort of POSIX system (such as macOS), preferably from a rented VPS and not your personal machine or phone.
Reccomended system specifications:
- Linux VPS with Python 3.8 or higher and
pipinstalled - 2GB of RAM, 100GB of storage or much more for anything other than single short video mirroring. If your OS drive is too small,
symlinkit to something larger.
Setup and Installation
- Install
ffmpeg, pip3 (typicallypython3-pip), and git. To install ffmpeg in Ubuntu, enable the Universe repository.
For Debian/Ubuntu:
sudo apt install ffmpeg python3-pip git
- Use pip3 to install the required python3 packages. At a minimum Python 3.7.13 and up is required (latest Python preferred).
pip install tubein
- Start archiving a video by running the script on a URL (or multiple URLs) supported by yt-dlp.. For YouTube, this includes account URLs and playlist URLs.
tubein <url>
Perodically before running, upgrade tubeup and its dependencies by running:
pip install tubein -U
Usage
Usage:
tubein <url>... [--username <user>] [--password <pass>]
[--cookies=<filename>]
[--proxy <prox>]
[--quiet] [--debug]
[--use-download-archive]
[--output <output>]
[--ignore-existing-item]
[--new-item-id <item_id>]
[--ydl-option-format <format>]
[--ydl-option-subtitleslangs <subtitleslangs>]
tubein -h | --help
tubein --version
Arguments:
<url> yt-dlp compatible URL to download.
Check yt-dlp documentation for a list
of compatible websites.
Options:
-h --help Show this screen.
-p --proxy <prox> Use a proxy while uploading.
-u --username <user> Provide a username, for sites like Nico Nico Douga.
-p --password <pass> Provide a password, for sites like Nico Nico Douga.
-a --use-download-archive Record the video url to the download archive.
This will download only videos not listed in
the archive file. Record the IDs of all
downloaded videos in it.
-q --quiet Just print errors.
-d --debug Print all logs to stdout.
-o --output <output> yt-dlp output template.
-i --ignore-existing-item Don't check if an item already exists on archive.org
A note on live videos
-
yt-dlp cannot do simultaneous downloads, cannot prioritize live video first on Youtube over live chat, This couldn't be fixed unless for YT which is what most people use it for, except by disabling livechat ripping to start video ripping, but even if that solution was acceptable by building in a flag on our end that disables chats to get video (again unacceptable) thats canceled by the next problem....
-
yt-dlp has a unacceptably high failure rate with
--live-from-startis called, sometimes the result doesn't mux, and in Twitches case is incomplete and isn't supported by all extractors. This flag is actually considered experimental by yt-dlp maintainers and has been said is unsuitable for archival purposes.
License (GPLv3)
Copyright (C) 2020 Bibliotheca Anonoma
Copyright (C) 2024 altCensored.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Metadata
Release files for tubein 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tubein-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for tubein-0.0.8-py3-none-any.whl |
Release files / tubein-0.0.8-py3-none-any.whl
| Download URL | tubein-0.0.8-py3-none-any.whl |
|---|---|
| Size | 25.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f308156ff85066e219381dbdfee8dbcfdd4d8d2f70590971753a93175a78fe7
|
|
BLAKE2b-256 checksum How to use checksums |
052e807e496b528a9e025edc679012421ed8cf11029b7c863ac287ddeb16d716
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for tubein 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.