Skip to content

Google Drive Searcher Bot Written In Python Using Pyrogram. Moded by @AbirHasan2005

License

Notifications You must be signed in to change notification settings

Jamesjules/GdriveSearcherBot

 
 

Repository files navigation

GdriveSearcherBot

Google Drive Searcher Bot Written In Python Using Pyrogram. Moded by @AbirHasan2005.

Deploy to Heroku:

Via Button:

Deploy

Via Heroku CLI:

Install Heroku on Linux:
apt install npm -y
npm i -g heroku
Login to Heroku CLI:
heroku login
heroku create app_name
Push to Heroku

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

Deploy Locally:

Getting Google OAuth API credential file:
  • 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:

YouTube

  • 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.

Docker Installation:

git clone https://github.com/thehamkercat/GdriveSearcherBot
cd GdriveSearcherBot
sudo docker build . -t GdriveSearcherBot
sudo docker run GdriveSearcherBot

Credits:

About

Google Drive Searcher Bot Written In Python Using Pyrogram. Moded by @AbirHasan2005

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.9%
  • Dockerfile 3.1%