Frequently Asked Questions - hsj51/SearchX GitHub Wiki
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
[](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 or gdtot links.
For example here's a gist raw link from which we will remove the commit id
https://gist.githubusercontent.com/hsj51/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/hsj51/7o1eed3691f87f7dcah11af1ld4bdeb1/raw/config.env
- Change current directory to 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
- 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
Check the log file first. If it doesn't help then go here and change the telegraph_limit
value to a lower value. Default is 95.