Skip to content

FujiwaraChoki/YouSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Unlimited Storage Solution based on YouTube.

Resources

License

Stars

Watchers

Forks

Languages