{"id":23628649,"url":"https://github.com/itz-fork/betterpyrodocs","last_synced_at":"2026-02-14T15:33:07.540Z","repository":{"id":112594262,"uuid":"529765644","full_name":"Itz-fork/BetterPyroDocs","owner":"Itz-fork","description":"Simple \u0026 Easy-to-use search engine to search for pyrogram api methods and raw functions","archived":false,"fork":false,"pushed_at":"2022-09-19T19:08:03.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-12T07:45:45.069Z","etag":null,"topics":["deno","mongodb-atlas","pyrogram"],"latest_commit_sha":null,"homepage":"https://itz-fork.github.io/BetterPyroDocs","language":"TypeScript","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/Itz-fork.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-08-28T04:55:10.000Z","updated_at":"2024-08-12T20:26:33.000Z","dependencies_parsed_at":"2023-04-04T02:18:21.047Z","dependency_job_id":null,"html_url":"https://github.com/Itz-fork/BetterPyroDocs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Itz-fork/BetterPyroDocs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2FBetterPyroDocs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2FBetterPyroDocs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2FBetterPyroDocs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2FBetterPyroDocs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Itz-fork","download_url":"https://codeload.github.com/Itz-fork/BetterPyroDocs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itz-fork%2FBetterPyroDocs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29448007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T14:10:32.461Z","status":"ssl_error","status_checked_at":"2026-02-14T14:09:49.945Z","response_time":53,"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":["deno","mongodb-atlas","pyrogram"],"created_at":"2024-12-28T00:46:56.651Z","updated_at":"2026-02-14T15:33:07.536Z","avatar_url":"https://github.com/Itz-fork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Better Pyro Docs\n**Simple \u0026 Easy-to-use** search engine to search for pyrogram api methods and raw functions\n\n\n# What's in\n- [API](#api)\n- [Bot](#bot)\n- [Web](#web)\n\n## API\n- **Directory:** [api](api)\n\n- **About:** API to search for pyrogram's api methods and raw functions\n\n- **Run with deno:**\n    ```sh\n    deno run --allow-net --allow-env api/main.ts\n    ```\n\n- **Search for**\n    - Methods\n        ```\n        [GET] /search/methods/\u003cquery\u003e\n        ```\n    - Raw functions\n        ```\n        [GET] /search/raw/\u003cquery\u003e\n        ```\n\n\n## Bot\n- **Directory:** [bot](bot)\n\n- **About:** Telegram bot to search for pyrogram's api methods and raw functions using inline mode\n\n- **Run with deno:**\n    ```sh\n    deno run --allow-net --allow-env --allow-run --allow-read --allow-write bot/main.ts\n    ```\n\n- **Search for**\n    - Methods\n        ```\n        !m \u003cquery\u003e\n        ```\n    - Raw functions\n        ```\n        !r \u003cquery\u003e\n        ```\n\n\n## Web\n- **Directory:** [web](web)\n\n- **About:** Website to search for pyrogram's api methods and raw functions using inline mode\n\n- **Run:** Just open the [index.html](web/index.html)\n\n- **Demo:** https://itz-fork.github.io/BetterPyroDocs\n\n\n# Guides\n- [Update cache](#update-cache)\n- [Update database](#update-database)\n- [Create search indexes](#create-search-indexes)\n\n## Update cache\nUpdate cached data lives inside [cache](cache) directory.\n\n```sh\ndeno run --allow-net --allow-write lib/scraper.ts\n```\n\n## Update database\nUpdated mongodb database collections based on local cache\n\n```sh\ndeno run --allow-net --allow-read --allow-env scripts/save_to_db.ts\n```\n\n## Create search indexes\nYou need to create 2 search indexes to make it work. First one for api methods and other one for raw functions\n\n- Click on \"Browse Collections\"\n- Navigate to search tab of the mongodb cluster\n- Click on \"CREATE INDEX\" button\n- Select \"JSON Editor\" and click on \"Next\" button\n- Select database collection\n    - `API_METHODS` - for api methods index\n    - `RAW_FUNCTIONS` - for raw functions index\n- Give \"Index name\"\n    - `api_methods` - for api methods index\n    - `raw_functions` - for raw functions index\n- Copy and paste the following index definition to the json editor\n    - For api methods index\n    ```\n    {\n        \"mappings\": {\n            \"dynamic\": false,\n            \"fields\": {\n                \"name\": {\n                    \"type\": \"string\"\n                },\n                \"description\": {\n                    \"type\": \"string\"\n                }\n            }\n        }\n    }\n    ```\n    - For raw functions index\n    ```\n    {\n        \"mappings\": {\n            \"dynamic\": false,\n            \"fields\": {\n                \"class_name\": {\n                    \"type\": \"string\"\n                },\n                \"description\": {\n                    \"type\": \"string\"\n                }\n            }\n        }\n    }\n    ```\n\n\n# Why?\nThe main goal of this project is to improve my web scraping skills, experiment with deno and mongodb atlas full text feature.\n\n\n# License\nLicensed under [MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitz-fork%2Fbetterpyrodocs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitz-fork%2Fbetterpyrodocs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitz-fork%2Fbetterpyrodocs/lists"}