{"id":13714179,"url":"https://github.com/akynazh/tg-search-bot","last_synced_at":"2026-01-23T07:46:12.649Z","repository":{"id":63885851,"uuid":"570868885","full_name":"akynazh/tg-search-bot","owner":"akynazh","description":"A telegram bot for searching and auto-saving.","archived":false,"fork":false,"pushed_at":"2024-12-10T16:14:01.000Z","size":8160,"stargazers_count":192,"open_issues_count":0,"forks_count":30,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T01:40:33.604Z","etag":null,"topics":["bot","dmm","pikpak","python","python3","redis-cache","spider","telegram","telegram-bot","wiki","wikipedia"],"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/akynazh.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-26T11:51:45.000Z","updated_at":"2025-05-06T09:33:40.000Z","dependencies_parsed_at":"2024-01-21T06:31:05.682Z","dependency_job_id":"61d0035a-7890-4122-8f45-c6d41fabe479","html_url":"https://github.com/akynazh/tg-search-bot","commit_stats":null,"previous_names":["akynazh/tg-search-bot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/akynazh/tg-search-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akynazh%2Ftg-search-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akynazh%2Ftg-search-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akynazh%2Ftg-search-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akynazh%2Ftg-search-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akynazh","download_url":"https://codeload.github.com/akynazh/tg-search-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akynazh%2Ftg-search-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28683996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bot","dmm","pikpak","python","python3","redis-cache","spider","telegram","telegram-bot","wiki","wikipedia"],"created_at":"2024-08-02T23:01:54.129Z","updated_at":"2026-01-23T07:46:12.631Z","avatar_url":"https://github.com/akynazh.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# tg-search-bot\n\nA Telegram bot that can be used to search for various video magnet links. It supports operations such as collection, exporting records, and automatically saving magnet links. It can be manually configured to block NSFW content and proxy Internet access.\n\nThe bot is built based on Python3, supports one-click deployment with Docker, and implements caching functions through Redis.\n\n## Functions\n\nThe following functions are sorted by development completion time, and new functions will be continuously added in the future.\n\n- Supports obtaining basic video information and magnet links - 2022/11/25\n- Support configuration proxy - 2022/11/26\n- Support allowing bot to automatically save optimal magnet links to Pikpak - 2022/12/29\n- Support getting preview video and full video - 2022/12/31\n- Support obtaining video screenshots - 2023/01/01\n- Support collection of actors and videos - 2023/01/04\n- Support deployment via docker - 2023/01/08\n- Supports obtaining actor rankings and film ratings - 2023/01/20\n- Supports random access to high-scoring videos and latest videos - 2023/01/25\n- Support searching for actors - 2023/02/18\n- Support caching through redis - 2023/03/17\n\n## Tutorial\n\nFirst, you need to download the code, then configure the bot and edit `~/.tg_search_bot/config.yaml`：\n\n```yaml\n# required, your telegram chat id\ntg_chat_id: \n# required, your telegram bot token\ntg_bot_token: \n# required, global proxy, 1 yes | 0 no\nuse_proxy: \n# optional, proxy server address, required if use_proxy == 1\nproxy_addr: \n# your telegram api id\ntg_api_id: \n# your telegram api hash\ntg_api_hash: \n# your redis host\nredis_host: \n# your redis port\nredis_port: \n# optional, your redis password, empty by default when using docker\nredis_password: \n# required, enable nsfw or not, 1 yes | 0 no\nenable_nsfw: 0\n```\n\nPS: To use Pikpak’s automatic sending function, you need to authorize it manually first: [Pikpak official bot](https://t.me/PikPak6_Bot), and then log in when running the bot for the first time.\n\nFinally, run the bot: (files such as records and logs are located in `~/.tg_search_bot`)\n\n```sh\n# op1. docker-compose\ndocker-compose up -d\n# op2. simple way (Python \u003e=3.9)\npip install -r requirements.txt \u0026\u0026 python3 bot.py\n```\n\n## Development\n\nI use python-3.9.13 for development. Please use python \u003c= 3.9 for development. In addition, it is recommended to use python virtual environment development to avoid unnecessary problems. The following are my development steps for reference only:\n\n```shell\ngit clone https://github.com/akynazh/tg-search-bot.git\ncd tg-search-bot\n~/.pyenv/versions/3.9.13/bin/python -m venv .venv\nsource ./.venv/bin/activate\npip3 install -r requirements.txt\n```\n\nThen you can start writing code. When you are done, remember to write or run a test instance (in `tests/test.py`). Please make sure there is no problem with the test before submitting the code.\n\n## Thanks\n\n\u003ca href=\"https://www.jetbrains.com/\"\u003e\n\u003cimg src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png\" alt=\"JetBrains Logo (Main) logo.\" style=\"width: 200px;\"\u003e\u003c/a\u003e\n\nThanks to JetBrains for their support to this project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakynazh%2Ftg-search-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakynazh%2Ftg-search-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakynazh%2Ftg-search-bot/lists"}