{"id":17477846,"url":"https://github.com/samfun75/bookdlbot","last_synced_at":"2025-04-22T10:42:42.192Z","repository":{"id":45742721,"uuid":"337419258","full_name":"Samfun75/BookdlBot","owner":"Samfun75","description":"A Telegram bot to search and download books from Libgen.rs using an asynchronous libgen api wrapper called libgenesis","archived":false,"fork":false,"pushed_at":"2022-10-17T11:04:22.000Z","size":75,"stargazers_count":15,"open_issues_count":1,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-18T23:19:27.434Z","etag":null,"topics":["async","books","bot","downloader","heroku","libgen","pyrogram","python","telegram","telegram-bot","uploader"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samfun75.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}},"created_at":"2021-02-09T13:50:18.000Z","updated_at":"2023-12-05T14:57:07.000Z","dependencies_parsed_at":"2023-01-20T07:16:18.398Z","dependency_job_id":null,"html_url":"https://github.com/Samfun75/BookdlBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samfun75%2FBookdlBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samfun75%2FBookdlBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samfun75%2FBookdlBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samfun75%2FBookdlBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samfun75","download_url":"https://codeload.github.com/Samfun75/BookdlBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228920507,"owners_count":17992005,"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","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":["async","books","bot","downloader","heroku","libgen","pyrogram","python","telegram","telegram-bot","uploader"],"created_at":"2024-10-18T20:09:53.290Z","updated_at":"2024-12-09T16:16:48.795Z","avatar_url":"https://github.com/Samfun75.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bookdl Bot\n\nThis is a working example to integrate [libgenesis](https://github.com/Samfun75/libgenesis) (an api for Libgen.rs) with a telegram bot.\n\n## Requirments\n\n- libgenesis  [View](https://github.com/Samfun75/libgenesis)\n- Pyrogram [View](https://github.com/pyrogram/pyrogram)\n- Pymongo\n\n## Installation\n\n### Docker\n\nGuide for installation using docker:\n\n\u003ca href=\"docker/\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/devicons/devicon/master/icons/docker/docker-original-wordmark.svg\" alt=\"Docker Instructions\" width=\"80\" height=\"80\"/\u003e \u003c/a\u003e\n### Heroku\n\nUse the below button to deploy.\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Samfun75/BookdlBot)\n\n### Other systems\n\nClone repository\n\n```bash\ngit clone https://github.com/Samfun75/BookdlBot\n```\n\nChange to repository directory\n\n```bash\ncd BookdlBot\n```\n\nInstall requirements and dependencies\n\n```python\npip3 install -r requirements.txt\n```\n\nCreate a new `config.ini` using the sample available at `bookdl/working_dir/config.ini.sample` in `bookdl/working_dir/`.\n\n```ini\n# Here is a sample of config file and what it should include:\n\n# More info on API_ID and API_HASH can be found here: https://docs.pyrogram.org/intro/setup#api-keys\n\n[pyrogram]\napi_id = 1234567\napi_hash = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n# More info on Bot API Key/token can be found here: https://core.telegram.org/bots#6-botfather\n\n[bot-configuration]\nbot_token = 123456789:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nsession = BookdlBot\ndustbin = -100xxxxxxxxx # Used to store uploaded book. id of a channel where the bot is admin\nallowed_users = [123456789, 987654321] # Telegram id of users allowed to use the bot. If the bot is open to all put empty array like this []\n\n# Mongodb Credentials\n\n[database]\ndb_host = xxxxxxxxxx.xxxxx.mongodb.net or localhost # In this section db_host is the address of the machine where the MongoDB is running\ndb_username = username\ndb_password = password\ndb_name = BookdlBot\ndb_type = Mongo_Atlas (or Mongo_Community)\n\n# ConvertAPI secret\n\n[convert]\nconvert_api = secretkey\n```\n\nRun bot with\n\n`python -m bookdl`\n\nstop with \u003ckbd\u003eCTRL\u003c/kbd\u003e+\u003ckbd\u003eC\u003c/kbd\u003e\n\n## Usage\n\n- Send /start and press \u003ckbd\u003eSearch 🔍\u003c/kbd\u003e and on the open inline query type the book name\n- Send a book's MD5 like 'MD5:a382109f7fdde3be5b2cb4f82d97443b'\n- Send a book link from 'library.lol, libgen.lc, libgen.gs or b-ok.cc'\n\nAfter performing one of the above seteps a book detail with 'Download' button is returned and press the button to download and upload the book to telegram.\n\nFor books other that PDF, a \u003ckbd\u003e🔃 Convert to PDF\u003c/kbd\u003e button is included and it uses converapi to convert the ebook to pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamfun75%2Fbookdlbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamfun75%2Fbookdlbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamfun75%2Fbookdlbot/lists"}