{"id":13989055,"url":"https://github.com/breakdowns/drive-searchbot","last_synced_at":"2025-07-22T10:30:56.810Z","repository":{"id":47280613,"uuid":"400666230","full_name":"breakdowns/drive-searchbot","owner":"breakdowns","description":"Google Drive file searcher","archived":true,"fork":false,"pushed_at":"2023-07-19T13:04:58.000Z","size":63,"stargazers_count":27,"open_issues_count":0,"forks_count":53,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-19T13:08:02.610Z","etag":null,"topics":["google-drive","heroku","python","team-drive","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/breakdowns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-08-28T00:31:44.000Z","updated_at":"2024-09-21T13:06:25.000Z","dependencies_parsed_at":"2024-01-15T17:33:42.903Z","dependency_job_id":"eeffa7d0-d41d-493c-8cac-1e3aa6c300b7","html_url":"https://github.com/breakdowns/drive-searchbot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/breakdowns/drive-searchbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breakdowns%2Fdrive-searchbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breakdowns%2Fdrive-searchbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breakdowns%2Fdrive-searchbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breakdowns%2Fdrive-searchbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/breakdowns","download_url":"https://codeload.github.com/breakdowns/drive-searchbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breakdowns%2Fdrive-searchbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266474975,"owners_count":23934847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-drive","heroku","python","team-drive","telegram-bot"],"created_at":"2024-08-09T13:01:29.939Z","updated_at":"2025-07-22T10:30:56.517Z","avatar_url":"https://github.com/breakdowns.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"```diff \n- [ DEAD REPO AND NO MORE UPDATE ]\n```\n# Drive Search Bot\n\nThis is a Telegram bot writen in Python for searching files in Drive. Based on [SearchX-bot](https://github.com/SVR666/SearchX-bot)\n\n# How to deploy?\n\n- Clone this repo:\n```\ngit clone https://github.com/breakdowns/drive-searchbot searchbot/\ncd searchbot\n```\n\n### Install requirements\n\n- For Debian based distros\n```\nsudo apt install python3\nsudo snap install docker \n```\n- For Arch and it's derivatives:\n```\nsudo pacman -S docker python\n```\n\n## Setting up config file\n```\ncp config_sample.env config.env\n```\n- Remove the first line saying:\n```\n_____REMOVE_THIS_LINE_____=True\n```\nFill up rest of the fields. Meaning of each fields are discussed below:\n- `BOT_TOKEN`: The telegram bot token that you get from [@BotFather](https://t.me/BotFather)\n- `OWNER_ID`: The Telegram user ID (not username) of the owner of the bot\n- `AUTHORIZED_CHATS`: (optional) Fill user_id and chat_id (not username) of you want to authorize, Seprate them with space, Examples: `-0123456789 -1122334455 6915401739`.\n- `TOKEN_PICKLE_URL`: (optional) Only if you want to load your **token.pickle** externally from an Index Link. Fill this with the direct link of that file.\n- `DRIVE_FOLDER_URL`: (optional) Only if you want to load your **drive_folder** externally from an Index Link. Fill this with the direct link of that file.\n\n## Upgrading.\n\nIf you are coming from last version where recursive searching was not possible, you must run driveid.py again and delete all previous content, and this time you just have to add Drives (Teamdrive or 'root' for Main Drive). See the section below for more.\n\n\n## Setting up drive_folder file\n\n- The bot can now search in sub-directories, so you just need to specify the teamdrives you want to use. To use main Drive, you can enter 'root' in the Drive id.\n- Add Drive name (anything that you likes), Drive id \u0026 Index url (optional) corresponding to each id.\n- Run `driveid.py` and follow the screen.\n```\npython3 driveid.py\n```\n\n## Getting Google OAuth API credential file\n\n- Visit the [Google Cloud Console](https://console.developers.google.com/apis/credentials)\n- Go to the OAuth Consent tab, fill it, and save.\n- Go to the Credentials tab and click Create Credentials -\u003e OAuth Client ID\n- Choose Desktop and Create.\n- Use the download button to download your **credentials.json**.\n- Move that file to the root of searchbot, and rename it to credentials.json\n- Visit [Google API page](https://console.developers.google.com/apis/library)\n- Search for Drive and enable it if it is disabled\n- Finally, run the script to generate token file **token.pickle** for Google Drive:\n```\npip install google-api-python-client google-auth-httplib2 google-auth-oauthlib\npython3 generate_drive_token.py\n```\n\n## Deploying on Server\n- Start docker daemon (skip if already running):\n```\nsudo dockerd\n```\n- Build Docker image:\n```\nsudo docker build . -t searchbot\n```\n- Run the image:\n```\nsudo docker run searchbot\n```\n\n## Deploying on Heroku\n- Give a star and Fork this repo\n- Upload **token.pickle** and **drive_folder** to your forks, or you can upload your **token.pickle** and **drive_folder** to your Index and put your **token.pickle** and **drive_folder** link to `TOKEN_PICKLE_URL` and `DRIVE_FOLDER_URL`.\n- Hit the **DEPLOY TO HEROKU** button and follow the further instructions in the screen (**NOTE**: If vars not coming, just change deploy link to your fork, Example: `https://dashboard.heroku.com/new?template=https://github.com/yourgithubname/drive-searchbot`).\n\n\u003cp\u003e\u003ca href=\"https://heroku.com/deploy\"\u003e \u003cimg src=\"https://img.shields.io/badge/Deploy%20to%20Heroku-blueviolet?style=for-the-badge\u0026logo=heroku\" width=\"200\"\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Deploying on Railway\n- Give a star and Fork this repo\n- Upload **token.pickle** and **drive_folder** to your forks, or you can upload your **token.pickle** and **drive_folder** to your Index and put your **token.pickle** and **drive_folder** link to `TOKEN_PICKLE_URL` and `DRIVE_FOLDER_URL`.\n- Hit the **DEPLOY TO RAILWAY** button and follow the further instructions in the screen.\n\n\u003cp\u003e\u003ca href=\"https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Fbreakdowns%2Fdrive-searchbot\u0026plugins=postgresql\u0026envs=BOT_TOKEN%2COWNER_ID%2CAUTHORIZED_CHATS%2CTOKEN_PICKLE_URL%2CDRIVE_FOLDER_URL\u0026optionalEnvs=AUTHORIZED_CHATS%2CTOKEN_PICKLE_URL%2CDRIVE_FOLDER_URL\u0026BOT_TOKENDesc=The+Telegram+bot+token+that+you+get+from+https%3A%2F%2Ft.me%2FBotFather.\u0026OWNER_IDDesc=The+Telegram+User+ID+of+the+Owner+of+the+Bot.+Get+it+by+using+%2Finfo+in+https%3A%2F%2Ft.me%2FMissRose_bot.\u0026AUTHORIZED_CHATSDesc=Fill+User+ID+and+Chat+ID+of+you+want+to+authorize%2C+Seprate+them+with+space.\u0026TOKEN_PICKLE_URLDesc=Only+if+you+want+to+load+your+token.pickle+externally+from+an+index+link.+Fill+this+with+the+direct+link+of+that+file.\u0026DRIVE_FOLDER_URLDesc=Only+if+you+want+to+load+your+drive_folder+externally+from+an+index+link.+Fill+this+with+the+direct+link+of+that+file.\u0026referralCode=Hafitz\"\u003e \u003cimg src=\"https://img.shields.io/badge/Deploy%20to%20Railway-blueviolet?style=for-the-badge\u0026logo=railway\" width=\"200\"\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n# Credits:\n\n- [`lzzy12`](https://github.com/lzzy12) for python-aria-mirror-bot\n- [`SVR666`](https://github.com/SVR666) for SearchX-bot\n\nAnd many more people who aren't mentioned here, but may be found in [Contributors](https://github.com/breakdowns/drive-searchbot/graphs/contributors).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreakdowns%2Fdrive-searchbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbreakdowns%2Fdrive-searchbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreakdowns%2Fdrive-searchbot/lists"}