-
-
Notifications
You must be signed in to change notification settings - Fork 281
Frequently Asked Questions
This is a telegram bot writen in python for searching data on Google Drive. Supports multiple Shared Drives (TDs). Able to clone data from drive.
Can I deploy this bot on Railway?
No, they will flag your account.
Deploy with Workflow or CLI. But if you need that button, follow the below steps
- Fork the repo
- Upload this app.json file on the root directory of your forked repo
- Then add the below code in Readme.md
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/<username>/SearchX)
Note: Remember to replace
<username>
with your GitHub username
Yes, that means it can search on sub-directories too.
No
Yes, that means it can clone data from Drive / AppDrive / GDToT links.
For example here's a gist raw link from which we will remove the commit id
https://gist.githubusercontent.com/l3v11/7o1eed3691f87f7dcah11af1ld4bdeb1/raw/92b7a460031d5v171a546ccad274f3e7f44fka46/config.env
Now focus on the link, there's an alphanumeric code exists after raw and before config.env. That's the commit id. Now remove that code along with a slash (/). So the final link will be like this
https://gist.githubusercontent.com/l3v11/7o1eed3691f87f7dcah11af1ld4bdeb1/raw/config.env
-
Mount the accounts folder
cd accounts
Grab emails form all SAs into emails.txt file
-
For Windows using PowerShell
$emails = Get-ChildItem .\**.json |Get-Content -Raw |ConvertFrom-Json |Select -ExpandProperty client_email >>emails.txt
-
For Linux / MacOs
grep -oPh '"client_email": "\K[^"]+' *.json > emails.txt
-
Unmount the accounts folder
cd ..
-
Now add emails from emails.txt to a Google Group, then add that Google Group to your Shared Drive and promote to
Manager
. After that delete email.txt file from the accounts folder.
Getting this error - 'python3' is not recognized as an internal or external command, operable program or batch file.
Use py
instead of python3