All Projects → alx-xlx → gdrive-clone

alx-xlx / gdrive-clone

Licence: MIT License
Clone a shared google drive link to your own google drive

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to gdrive-clone

Icopy
fclone telegram interface.Send commands to Telegram BOT for get a convience way to control fclone resources copy missions.
Stars: ✭ 188 (+291.67%)
Mutual labels:  telegram, copy
pump-and-dump-dataset
Additional material for paper: Pump and Dumps in the Bitcoin Era: Real Time Detection of Cryptocurrency Market Manipulations, ICCCN '20
Stars: ✭ 66 (+37.5%)
Mutual labels:  telegram
search photo-telegram-bot-heroku
一个可以部署在heroku上的搜图机器人
Stars: ✭ 137 (+185.42%)
Mutual labels:  telegram
vldc-bot
The official VLDC telegram group bot
Stars: ✭ 23 (-52.08%)
Mutual labels:  telegram
Harmonbot
Multi-Platform Factotum Bot
Stars: ✭ 30 (-37.5%)
Mutual labels:  telegram
messaging-apis
Messaging APIs for multi-platform
Stars: ✭ 1,759 (+3564.58%)
Mutual labels:  telegram
tg
`telegram-cli` for Telegram IM
Stars: ✭ 306 (+537.5%)
Mutual labels:  telegram
Nayumi
A cute bot of Telegram.
Stars: ✭ 12 (-75%)
Mutual labels:  telegram
fs-utils
Generalized file and path utils for Node.js projects.
Stars: ✭ 33 (-31.25%)
Mutual labels:  copy
Telega
C# Telegram MTProto Client
Stars: ✭ 38 (-20.83%)
Mutual labels:  telegram
tgskit
Toolkit for dealing with Telegram Stickers and Bodymovin/Lottie animations.
Stars: ✭ 45 (-6.25%)
Mutual labels:  telegram
mutegram
Disable Telegram Desktop Taskbar Flashing
Stars: ✭ 26 (-45.83%)
Mutual labels:  telegram
efb-wechat-docker
EFB WeChat Slave Docker Ver.
Stars: ✭ 48 (+0%)
Mutual labels:  telegram
pykeyboard
Best Keyboard and Pagination for the Pyrogram Library.
Stars: ✭ 42 (-12.5%)
Mutual labels:  telegram
Store-bot
Пример Telegram бота для продажи товаров.
Stars: ✭ 43 (-10.42%)
Mutual labels:  telegram
MIRROR-HUNTER
Who are we? We are the Hunters of all Torrent in this world.🗡️.Fork from SlamDevs
Stars: ✭ 86 (+79.17%)
Mutual labels:  telegram
FileStreamBot
Telegram File to Link Fastest Bot , Its Generate Direct Links Quickly
Stars: ✭ 99 (+106.25%)
Mutual labels:  telegram
TGPy
Run Python code right in your Telegram messages
Stars: ✭ 14 (-70.83%)
Mutual labels:  telegram
telegramircd
Control Telegram user account with IRC
Stars: ✭ 64 (+33.33%)
Mutual labels:  telegram
winston-telegram
A Telegram transport for winston
Stars: ✭ 28 (-41.67%)
Mutual labels:  telegram
gdrive-clone

gdrive-clone
"Clone a shared google drive link to your own google drive"
gdrive-clone-license GitHub Release Date GitHub last commit GitHub repo size

🌠 Features

  • COPY/MOVE/SYNC any Shared Folder to your (My Drive/Shared Drive)
  • Server Side Copy (SAs are used for copy/move/sync)
  • Bypass 750GB Transfer Limit
  • No extra Bandwidth Required
  • Integrated with Telegram Bot for easy access

⚙️ Requirements

  • Python 3
  • NodeJS
  • Telegram Application
  • Linux Server

📤 Setup

sudo apt install -y make python build-essential
git clone https://github.com/alx-xlx/gdrive-clone.git
cd gdrive-clone
mkdir accounts
chmod -R 777 gclone
npm install

Create a Telegram Bot

  1. Open your Telegram Application and find @botfather or visit t.me/botfather
  2. /start
  3. /newbot
  4. Choose a Name for your Bot

Once Successful, you will be presented with a link to your bot (t.me/YOURBOT) & a Token to Access the HTTP API

Generate Service Accounts

Before Generating Service Accounts we have to enable Drive API in our Google Account and grab the API credentials.json file.

Enable APIs

Drive API

  1. Visit https://developers.google.com/drive/api/v3/quickstart/python
  2. Enter a Project Name OR Skip
  3. Configure your OAuth Client > Desktop App
  4. Create

Rename the file to credentials.json and place it in the repository folder

To Enable the below two APIs, visit the link > select the Project > Enable

iam-googleapis

Identity and Access Management (IAM) API

iam.googleapis.com

Service Usage API

serviceusage.googleapis.com

pip3 install -r requirements.txt
# Install all the required python modules
python3 gen_sa_accounts.py --quick-setup 2 --new-only
# This will create around 200 Service Accounts
python3 gen_sa_accounts.py --quick-setup 5 --new-only
# This will create around 1200 Service Accounts
python3 add_to_team_drive.py -d TEAMDRIVEID

Replace TEAMDRIVEID with your Teamdrive ID

OR

Replace TEAMDRIVEID with Folder ID Inside My Drive having Editor Permission

This will Add all the service accounts to your Teamdrive, so make sure you have Manager Role in this TEAMDRIVEID

If you don't have a Team Drive, you can get few from below links

https://td.fastio.me

https://td.hackgence.com OR https://team.hackgence.com

We have successfully generated Service Accounts (SA) at /gdrive-clone/accounts/ folder, Rename any one of the SA to 1.json

Run

node server
# This will run the server, and now you can goto your Telegram bot and run commands

If everything go as scripted it will prompt you to Enter a Token Switch back to Telegram App and /run /PATH/TO/gdrive-clone/gclone

Run Forever

sudo npm install forever -g
# Install forever
forever start server.js
# Start Server
forever stop server.js
# Stop Server

Credits

botgram/shellbot - Shell Running Telegram Bot

donwa/gclone - Modified rclone for SA Support

xyou365/AutoRclone - To generate Service Accounts

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].