Package: yt-archiver
Copyright (c) 2018 Michal KormanPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.Description: # yt-archiveryt-archiver offers automatic backup for YouTube videos and livestreams. All you need to do is to choose channels to follow and leave itrunning 24/7. It will automatically download any new content. Copies will be accessible even if original video orassociated channel would become unavailable.*Nothing gets deleted from the Internet*## Installation### Prerequirements- Python 3- pip- YouTube API key (this could be obtained by following[the official guide](https://developers.google.com/youtube/registering_an_application), most interesting sections would be*"Create your project and select API services"* and *"Creating API Keys"*)- Identifiers of channels that you would like to follow. To obtain these simply open YouTube in browser and navigate to your favorite channel.In the navigation bar there will be an URL in format: ```https://www.youtube.com/channel/<ID>```. Series of charactersvisible in place of  ```<ID>``` will indicate the unique identifier of the channel. Copy it.### Steps1. Install command line tool:```pip3 install yt-archiver```2. Start monitoring with:```ytarchiver -k <YOUR_API_KEY> -m <CHANNELS_ID>```Of course replace ```<YOUR_API_KEY>``` with your personal YouTube API key and ```<CHANNELS_ID>``` with identifiers ofchannels that you would like to monitor. Multiple identifiers could be specified after space. ```ytarchiver```command is installed globally, so you can invoke it from any directory.Now application should automatically download any new video. By default videos are stored in ```out``` folder.### Custom options#### Record livestreamsyt-archiver offers an option to automatically record any livestream started on monitored channels.All you need to do is to add ```-s``` option.```ytarchiver -k <YOUR_API_KEY> -m <CHANNELS_ID> -s```#### Changing output directoryBy default yt-archiver saves all downloaded videos to ```out``` directory, in application's folder.```-o``` option allows to change it.```ytarchiver -k <YOUR_API_KEY> -m <CHANNELS_ID> -o <CUSTOM_OUTPUT_DIRECTORY>```#### Downloading historical dataBy default yt-archiver only downloads videos published after it is started. To download all videos from the past specify```-a``` option.```ytarchiver -k <YOUR_API_KEY> -m <CHANNELS_ID> -a```**WARNING:** downloading all videos from channel might take a lot of time and consume a lot of disk space#### Changing refresh timeDefault delay between consecutive requests for new videos is 5 minutes. It might be changed with ```-t``` option.```ytarchiver -k <YOUR_API_KEY> -m <CHANNELS_ID> -t 60``````-t``` expects time in seconds. Command above will fetch channels every 1 minute.Platform: UNKNOWNClassifier: License :: OSI Approved :: MIT LicenseClassifier: Operating System :: MacOSClassifier: Operating System :: MicrosoftClassifier: Operating System :: POSIXClassifier: Operating System :: UnixClassifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6Classifier: Programming Language :: PythonClassifier: Environment :: Console