项目作者: TheHamkerCat

项目描述 :
Google Drive Searcher Bot Written In Python Using Pyrogram.
高级语言: Python
项目地址: git://github.com/TheHamkerCat/GdriveSearcherBot.git
创建时间: 2021-03-26T10:30:18Z
项目社区:https://github.com/TheHamkerCat/GdriveSearcherBot

开源协议:MIT License

下载


GdriveSearcherBot

Google Drive Searcher Bot Written In Python Using Pyrogram.

Python

Installation

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
  • Visit Google API page
  • Search for Drive and enable it if it is disabled
  • Run these commands
  1. $ pip3 install -U pip
  2. $ pip3 install -U -r requirements.txt
  3. $ python3 generate_drive_token.py
  4. $ cp sample_config.py config.py
  • Edit config.py with your own values
  • Run $ python3 main.py to start the bot.

Docker Installation

  1. $ git clone https://github.com/thehamkercat/GdriveSearcherBot
  2. $ cd GdriveSearcherBot
  3. $ sudo docker build . -t GdriveSearcherBot
  4. $ sudo docker run GdriveSearcherBot

Credits

@SVR666 For Drive module.

Notes