Metadata-Version: 2.1
Name: opplast
Version: 1.0.0
Summary: Upload videos to YouTube using geckodriver, Firefox profiles and Selenium.
Home-page: https://github.com/offish/opplast
Author: offish
Author-email: overutilization@gmail.com
License: MIT
Download-URL: https://github.com/offish/opplast/tarball/v1.0.0
Description: # opplast
        [![Version](https://img.shields.io/pypi/v/opplast.svg)](https://pypi.org/project/opplast)
        [![License](https://img.shields.io/github/license/offish/opplast.svg)](https://github.com/offish/opplast/blob/master/LICENSE)
        [![Stars](https://img.shields.io/github/stars/offish/opplast.svg)](https://github.com/offish/opplast/stargazers)
        [![Issues](https://img.shields.io/github/issues/offish/opplast.svg)](https://github.com/offish/opplast/issues)
        [![Size](https://img.shields.io/github/repo-size/offish/opplast.svg)](https://github.com/offish/opplast)
        [![Discord](https://img.shields.io/discord/467040686982692865?color=7289da&label=Discord&logo=discord)](https://discord.gg/t8nHSvA)
        [![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
        
        [![Donate Steam](https://img.shields.io/badge/donate-steam-green.svg)](https://steamcommunity.com/tradeoffer/new/?partner=293059984&token=0-l_idZR)
        [![Donate PayPal](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/0ffish)
        
        Upload videos to YouTube using geckodriver, Firefox profiles and Selenium. Easy to setup and use. Repository is inspired by [youtube_uploader_selenium](https://github.com/linouk23/youtube_uploader_selenium).
        
        "Opplast" is norwegian for "upload".
        
        ## Installing
        Install and update using pip:
        
        ```
        pip install opplast
        ```
        
        Download [geckodriver](https://github.com/mozilla/geckodriver/releases) and place it inside `C:\Users\USERNAME\AppData\Local\Programs\Python\Python37`. If you are using another version of Python, you place it inside there.  
        
        ## Configuration
        Open Firefox, and go to `about:profiles`. Click "Create a New profile" and name it "Selenium" or whatever. Copy the "Root Directory" path of the new profile. This is your `root_profile_directory`. Now you can "Launch profile in new browser", go to [YouTube](https://youtube.com), and login to the account you want to upload with.
        
        ```python
        Upload(root_profile_directory: str, timeout=TIMEOUT, headless=True, debug=True) -> None
        ```
        `timeout: int` - seconds Selenium should wait, when getting pages and inserting data. Default: `3`.
        
        `headless: bool` - whether or not you want to see the GUI. Default: `True`.
        
        `headless: bool` - whether or not you want to see the debug info. Default: `True`.
        
        
        ## Usage
        ```python
        from opplast import Upload
        
        
        upload = Upload(
            "C:/Users/USERNAME/AppData/Roaming/Mozilla/Firefox/Profiles/random.selenium",
            timeout=3,
            headless=True,
            debug=True,
        )
        
        was_uploaded, video_id = upload.upload(
            {
                "file": "path/to/video.mp4",
                "title": "My YouTube Title",
                "description": "My YouTube Description",
            }
        )
        
        if was_uploaded:
            print(f"{video_id} has been uploaded to YouTube")
        
        upload.close()
        ```
        
        ## License
        MIT License
        
        Copyright (c) 2021 [offish](https://offi.sh)
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 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 THE SOFTWARE.
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
