Google Drive Searcher Bot Written In Python Using Pyrogram. Moded by @AbirHasan2005.
- Import it as Private.
- Follow Steps for Getting Google Cloud Console Project's
credentials.json
File. - Send that
credentials.json
file to @TokenPickle_Bot & get yourtoken.pickle
file. - Upload that
token.pickle
file to your Private Imported GitHub Repository. - Change Heroku Deploy Template Link with your Private Imported GitHub Repository Link.
- Press Deploy to Heroku Button.
apt install npm -y
npm i -g heroku
heroku login
heroku create app_name
Follow Steps for getting credentials.json
file: Here
git clone https://github.com/AbirHasan2005/GdriveSearcherBot
cd GdriveSearcherBot
python3 generate_drive_token.py
git add .
git commit -am "Pushing to Heroku"
heroku git:remote -a app_name
git push heroku
- Visit the Google Cloud Console
- Go to the OAuth Consent tab, fill it, and save.
- Go to the Credentials tab and click Create Credentials -> OAuth Client ID
- Choose Desktop and Create.
- Use the download button to download your credentials.
- Move that file to the root of this bot, and rename it to credentials.json
Here is video tutorial:
- Visit Google API page
- Search for Drive and enable it if it is disabled
- Run these commands
pip3 install -U pip
pip3 install -U -r requirements.txt
python3 generate_drive_token.py
- Edit config.py with your own values
- Run
python3 main.py
to start the bot.
git clone https://github.com/thehamkercat/GdriveSearcherBot
cd GdriveSearcherBot
sudo docker build . -t GdriveSearcherBot
sudo docker run GdriveSearcherBot
- @SVR666 For Drive module.
- @TheHamkerCat For Noice Source Code.