This is a Telegram Bot written in Python for searching data on Google Drive.

Related tags

Search SearchX
Overview

SearchX

This is a Telegram Bot written in Python for searching data on Google Drive. Supports multiple Shared Drives (TDs).

Manual

Guide for deploying the bot

Commands

List of commands for the bot

Changelog

List of changes made to the bot

FAQ

Read this if you have any queries

Credits

List of contributors of the bot

Comments
  • Token.json missing error on VPS

    Token.json missing error on VPS

    app_1 | 2022-12-21 16:29:27,200 - bot - ERROR - The token.json file is missing app_1 | 2022-12-21 16:29:27,205 - google.auth._default - WARNING - Authentication failed using Compute Engine authentication due to unavailable metadata server. app_1 | 2022-12-21 16:29:27,206 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception. app_1 | Traceback (most recent call last): app_1 | File "/usr/local/lib/python3.8/dist-packages/telegram/ext/utils/promise.py", line 96, in run app_1 | self._result = self.pooled_function(*self.args, **self.kwargs) app_1 | File "/usr/src/app/bot/modules/list.py", line 20, in list_drive app_1 | gd = GoogleDriveHelper() app_1 | File "/usr/src/app/bot/helper/drive_utils/gdriveTools.py", line 68, in init app_1 | self.__service = self.__authorize() app_1 | File "/usr/src/app/bot/helper/drive_utils/gdriveTools.py", line 104, in __authorize app_1 | return build('drive', 'v3', credentials=creds, cache_discovery=False) app_1 | File "/usr/local/lib/python3.8/dist-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper app_1 | return wrapped(*args, **kwargs) app_1 | File "/usr/local/lib/python3.8/dist-packages/googleapiclient/discovery.py", line 298, in build app_1 | service = build_from_document( app_1 | File "/usr/local/lib/python3.8/dist-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper app_1 | return wrapped(*args, **kwargs) app_1 | File "/usr/local/lib/python3.8/dist-packages/googleapiclient/discovery.py", line 580, in build_from_document app_1 | credentials = _auth.default_credentials( app_1 | File "/usr/local/lib/python3.8/dist-packages/googleapiclient/_auth.py", line 57, in default_credentials app_1 | credentials, _ = google.auth.default( app_1 | File "/usr/local/lib/python3.8/dist-packages/google/auth/_default.py", line 653, in default app_1 | raise exceptions.DefaultCredentialsError(_HELP_MESSAGE) app_1 | google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started

    I'm getting this error, I'm hosting it on VPS. Bot is starting but throwing this error if I try to find something.

    token.json file is present in directory as well as in config.

    bug solved 
    opened by leonard4546 9
  • APPDRIVE details in config.env

    APPDRIVE details in config.env

    How to fill below details in config.env if we using google+ login in appdrive?

    APPDRIVE_EMAIL=
    APPDRIVE_PASS=
    

    As its a google+ login, we have to fill google login password?

    solved 
    opened by Telestosatt 3
  • AttributeError: 'ResumableUploadError' object has no attribute 'replace

    AttributeError: 'ResumableUploadError' object has no attribute 'replace

    During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/usr/src/app/bot/helper/download_utils/gd_downloader.py", line 34, in add_gd_download drive.download(link) File "/usr/src/app/bot/helper/drive_utils/gdriveTools.py", line 705, in download self.__listener.onDownloadComplete() File "/usr/src/app/bot/modules/archive.py", line 127, in onDownloadComplete drive.upload(up_name) File "/usr/src/app/bot/helper/drive_utils/gdriveTools.py", line 597, in upload self.__listener.onUploadError(err) File "/usr/src/app/bot/modules/archive.py", line 174, in onUploadError error = error.replace('<', '').replace('>', '') AttributeError: 'ResumableUploadError' object has no attribute 'replace'

    rejected 
    opened by AtrociousMirrorBot 1
  • Not a issue but a How-to-query

    Not a issue but a How-to-query

    Is there a way to make a key-value pair for the destination id and save them in some file instead of typing the whole id again n again, for eg : /clone link Movies

    solved 
    opened by Nuub073 1
  • Question Not an issue

    Question Not an issue "query/doubt"

    This is the directory in the container right ? https://github.com/l3v11/SearchX/blob/ef62f8bf79038d0acbfffed13ac334b91b7d795c/Dockerfile#L3

    and in config https://github.com/l3v11/SearchX/blob/ef62f8bf79038d0acbfffed13ac334b91b7d795c/config_sample.env#L10 as well I have to set it to /usr/src/app and if i run multiple instance of this bot on vps it wont cause isse as the volumes are mapped inside container and outside they arent mapped to /usr/src/app

    This is what I thought that for every app in Dockerfile and on config I should set it up to /usr/src/app1 ..2 ..3 and so on

    which I shouldn't right for every deployment if I keep DOWNLOAD_DIR & Dockerfile work directory to /usr/src/app it should work fine Right ??

    I want to run 4 bots on 1 vps what's the best way to do that I mean what DOWNLOAD_DIR should I set ?

    solved 
    opened by bolavefasfas 1
  • error when running gen_token.py

    error when running gen_token.py

    Traceback (most recent call last): File "/home/.local/lib/python3.7/site-packages/google/auth/transport/requests.py", line 26, in import requests File "/usr/lib/python3/dist-packages/requests/init.py", line 43, in import urllib3 File "/usr/lib/python3/dist-packages/urllib3/init.py", line 8, in from .connectionpool import ( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 28, in from six.moves import queue File "/usr/lib/python3/dist-packages/six.py", line 92, in get result = self._resolve() File "/usr/lib/python3/dist-packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/usr/lib/python3/dist-packages/six.py", line 82, in _import_module import(name) File "/usr/lib/python3.7/queue.py", line 3, in import threading File "/usr/lib/python3.7/threading.py", line 8, in from traceback import format_exc as _format_exc ImportError: cannot import name 'format_exc' from 'traceback' (/usr/lib/python3.7/traceback.py) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "gen_token.py", line 4, in from google.auth.transport.requests import Request File "/home/.local/lib/python3.7/site-packages/google/auth/init.py", line 17, in import logging File "/usr/lib/python3.7/logging/init.py", line 26, in import sys, os, time, io, traceback, warnings, weakref, collections.abc File "/usr/lib/python3.7/traceback.py", line 5, in import linecache File "/usr/lib/python3.7/linecache.py", line 11, in import tokenize File "/usr/lib/python3.7/tokenize.py", line 35, in from token import * File "/gen_token.py", line 4, in from google.auth.transport.requests import Request File "/home/.local/lib/python3.7/site-packages/google/auth/transport/requests.py", line 35, in caught_exc, File "", line 3, in raise_from ImportError: The requests library is not installed, please install the requests package to use the requests transport.

    i already have requests installed with pip3 install requests

    solved 
    opened by mohitjoshi155 1
  • Add Replit Support

    Add Replit Support

    Deployment Method of Replit

    1. Forked repo doesn't Contain Wiki so writing it here.
    2. Import repo in Repl
    3. Add config files namely - credentials.json, drive_list (or url in Config), and lastly config.env
    4. After adding files , Click on start button and it will first install the requirements and Start the bot !
    enhancement 
    opened by anymeofu 1
Owner
Levi
Levi
PwnWiki Telegram database searching bot

pwtgbot PwnWiki Telegram database searching bot. Screenshots How it looks like in the terminal when running How it looks like in Telegram Run Directly

K4YT3X 3 Jan 25, 2022
Google Drive file searcher

Google Drive file searcher

Hafitz Setya 25 Dec 9, 2022
A fast, efficiency python package for searching and getting search results with many different search engines

search A fast, efficiency python package for searching and getting search results with many different search engines. Installation To install the pack

Neurs 0 Oct 6, 2022
A simple tool for searching images inside a local folder with text/image input using CLIP

clip-search (WIP) A simple tool for searching images inside a local folder with text/image input using CLIP 10 results for "a blonde woman" in a folde

null 5 Dec 25, 2022
A simple search engine that allow searching for chess games

A simple search engine that allow searching for chess games based on queries about opening names & opening moves. Built with Python 3.10 and python-chess.

Tyler Hoang 1 Jun 17, 2022
Google Project: Search and auto-complete sentences within given input text files, manipulating data with complex data-structures.

Auto-Complete Google Project In this project there is an implementation for one feature of Google's search engines - AutoComplete. Autocomplete, or wo

Hadassah Engel 10 Jun 20, 2022
An image inline search telegram bot.

Image-Search-Bot An image inline search telegram bot. Note: Use Telegram picture bot. That is better. Not recommending to deploy this bot. Made with P

Fayas Noushad 24 Oct 21, 2022
Simple algorithm search engine like google in python using function

Mini-Search-Engine-Like-Google I have created the simple algorithm search engine like google in python using function. I am matching every word with w

Sachin Vinayak Dabhade 5 Sep 24, 2021
Google Search Engine Results Pages (SERP) in locally, no API key, no signup required

Local SERP Google Search Engine Results Pages (SERP) in locally, no API key, no signup required Make sure the chromedriver and required package are in

theblackcat102 4 Jun 29, 2021
GitScanner is a script to make it easy to search for Exposed Git through an advanced Google search.

GitScanner Legal disclaimer Usage of GitScanner for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to

Kaio Gomes 3 Oct 28, 2022
User-friendly, tiny source code searcher written by pure Python.

User-friendly, tiny source code searcher written in pure Python. Example Usages Cat is equivalent in the regular expression as '^Cat$' bor class Cat

Furkan Onder 106 Nov 2, 2022
Eland is a Python Elasticsearch client for exploring and analyzing data in Elasticsearch with a familiar Pandas-compatible API.

Python Client and Toolkit for DataFrames, Big Data, Machine Learning and ETL in Elasticsearch

elastic 463 Dec 30, 2022
txtai executes machine-learning workflows to transform data and build AI-powered semantic search applications.

txtai executes machine-learning workflows to transform data and build AI-powered semantic search applications.

NeuML 3.1k Dec 31, 2022
Es-schema - Common Data Schemas for Elasticsearch

Common Data Schemas for Elasticsearch The Common Data Schema for Elasticsearch i

Tim Schnell 2 Jan 25, 2022
High level Python client for Elasticsearch

Elasticsearch DSL Elasticsearch DSL is a high-level library whose aim is to help with writing and running queries against Elasticsearch. It is built o

elastic 3.6k Dec 30, 2022
Pysolr — Python Solr client

pysolr pysolr is a lightweight Python client for Apache Solr. It provides an interface that queries the server and returns results based on the query.

Haystack Search 626 Dec 1, 2022
Whoosh indexing capabilities for Flask-SQLAlchemy, Python 3 compatibility fork.

Flask-WhooshAlchemy3 Whoosh indexing capabilities for Flask-SQLAlchemy, Python 3 compatibility fork. Performance improvements and suggestions are read

Blake VandeMerwe 27 Mar 10, 2022
Senginta is All in one Search Engine Scrapper for used by API or Python Module. It's Free!

Senginta is All in one Search Engine Scrapper. With traditional scrapping, Senginta can be powerful to get result from any Search Engine, and convert to Json. Now support only for Google Product Search Engine (GShop, GVideo and many too) and Baidu Search Engine.

null 33 Nov 21, 2022
esguard provides a Python decorator that waits for processing while monitoring the load of Elasticsearch.

esguard esguard provides a Python decorator that waits for processing while monitoring the load of Elasticsearch. Quick Start You need to launch elast

po3rin 5 Dec 8, 2021