Git Product home page Git Product logo

yousync's Introduction

YouSync

A Unlimited Storage Cloud Solution, for free, built using Selenium and Python.

Features

  • Upload files
  • Download files
  • Delete files
  • Rename files
  • Search files

Tech

Installation

YouSync requires Python to run.

First, you need to clone the repository and cd into it.

git clone https://github.com/FujiwaraChoki/yousync.git
cd yousync

Next, install the pip dependencies from the requirements.txt file.

pip install -r requirements.txt

Then, create a config.json file from the template (template.config.json). See Config Section for more information.

cp template.config.json config.json

You can now rename run.sh to yousync, and add it to your PATH.

mv run.sh yousync
export PATH=$PATH:$(pwd)

or on Windows:

ren run.bat yousync
set PATH=%PATH%;%cd%

Run

โš ๏ธ Have your config.json ready before trying to run the script. See Config Section for more information.

Install the dependencies and run the script.

pip install -r requirements.txt
./run.sh --help

Usage

Run the script with the --help or -h flag to see the usage.

./run.sh --help

Config

Your configuration file should be named config.json, and should be in the same directory as the run.sh- script (defaults to root directory).

Here is an example of a config file:

{
  "db_provider": "mongodb", // `mongodb` or `sqlite`
  "sqlite_file_location": "yousync.db",
  "mongodb_db_name": "yousync",
  "mongodb_uri": "",
  "firefox_profile_location": "/home/user/.mozilla/firefox/xxxxxxx.default-release",
  "channel_id": "", // Get your channel ID by visiting youtube studio and extracting it from the URL
  "headless": false,
  "verbose": false
}

How it works

To upload any file to youtube, we need to convert it to a video. To do that, YouSync uses a github repo called file2video. It converts the file to a video, and then uploads it to youtube. It then gets the video id, and stores it in the specified database. You can then download the file using the provided hash, or the original file path.

License

See LICENSE file for more information.

Authors

yousync's People

Contributors

fujiwarachoki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.