{"id":19815385,"url":"https://github.com/nuzulul/telegram-scraper","last_synced_at":"2025-05-01T10:31:35.388Z","repository":{"id":218735037,"uuid":"746644888","full_name":"nuzulul/telegram-scraper","owner":"nuzulul","description":"A simple Telegram channel scraper","archived":false,"fork":false,"pushed_at":"2024-10-12T03:58:59.000Z","size":37,"stargazers_count":22,"open_issues_count":4,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T12:45:32.906Z","etag":null,"topics":["bot","html-parser","scraper","telegram","telegram-bot","telegram-channel-scraper","telegram-channel-to-json","telegram-scraper","telegram-to-json","web-scraper","web-scraping"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/p/devbox/telegram-channel-scraper-q9g93l","language":"JavaScript","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/nuzulul.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":"2024-01-22T12:30:42.000Z","updated_at":"2025-03-29T22:06:47.000Z","dependencies_parsed_at":"2024-01-23T15:25:14.568Z","dependency_job_id":"2f5cb623-b647-4509-9233-d0a56b2fd888","html_url":"https://github.com/nuzulul/telegram-scraper","commit_stats":null,"previous_names":["nuzulul/telegram-scraper"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuzulul%2Ftelegram-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuzulul%2Ftelegram-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuzulul%2Ftelegram-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuzulul%2Ftelegram-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuzulul","download_url":"https://codeload.github.com/nuzulul/telegram-scraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251859941,"owners_count":21655645,"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":["bot","html-parser","scraper","telegram","telegram-bot","telegram-channel-scraper","telegram-channel-to-json","telegram-scraper","telegram-to-json","web-scraper","web-scraping"],"created_at":"2024-11-12T10:05:46.360Z","updated_at":"2025-05-01T10:31:35.094Z","avatar_url":"https://github.com/nuzulul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# telegram-scraper\nA simple Telegram channel scraper\n\n## Features\n\n* ✅ 0 Dependencies\n* ✅ No Authentication\n* ✅ JSON Output\n\n## Demo\n\n[https://codesandbox.io/p/devbox/telegram-channel-scraper-q9g93l](https://codesandbox.io/p/devbox/telegram-channel-scraper-q9g93l)\n\n## Installation\n\n```javascript\nnpm install telegram-scraper\n```\n\n## Example Usage\n\n```javascript\nimport {telegram_scraper} from 'telegram-scraper'\n\nvoid async function main() {\n\n\tlet telegram_channel_username = 'telegram'\n\n\tlet result = await telegram_scraper(telegram_channel_username)\n\n\tconsole.log(result)\n\t\n}()\n```\n\n```javascript\nconst {telegram_scraper} = require('telegram-scraper')\n\nvoid async function main() {\n\n\tlet telegram_channel_username = 'telegram'\n\n\tlet result = await telegram_scraper(telegram_channel_username)\n\n\tconsole.log(result)\n\t\n}()\n```\n## Example App\n\n```javascript\nconst {telegram_scraper} = require('telegram-scraper')\n\nconst http = require('http')\n\nconst serverport =  process.env.PORT || 8080\n\nlet telegram_channel = 'telegram'\n\nconst server = http.createServer(async(req,res)=\u003e{\n\n\tlet result = await telegram_scraper(telegram_channel)\n\n\tres.statusCode = 200\n\t\n\tres.setHeader('Content-Type','application/json')\n\t\n\tres.setHeader('Access-Control-Allow-Origin','*')\n\t\n\tres.end(result)\n\t\n})\n\nserver.listen(serverport,()=\u003e{\n\n\tconsole.log(`Server running at ${serverport}`) \n\t\n})\n```\n\n## Example Output\n\n```javascript\n[\n    {\n        \"data_post\": \"telegram/258\",\n        \"data_view\": \"eyJjIjotMTAwNTY0MDg5MiwicCI6MjU4LCJ0IjoxNzA2OTQ3MjY0LCJoIjoiMTcwN2E5NzJjMTgzM2I2ZTM0In0\",\n        \"user_url\": \"https://t.me/telegram\",\n        \"user_photo\": \"https://cdn1.cdn-telegram.org/file/GFUVa7B7wr28OE5SeJ1yJnZaCmd8P4sP4-d_oCTURVJ6hUSRP9Y_nb2QxQWcpNnJDfV-4kByP7EKCmhoLaTFif02B3DV_7V5dixuLFdSICCSFs1s7gAZJNkLzsUAqYmkTGfmPZnHL58r9ljEXZGUIH6pHJz-Rn7BAfQHxA-Y87exrv4LsNLL68aFGRs9vsb71EcnxxymG50u-wsysTJ4u_aql1PzOWh4TX1TyCjHTlPJl3VmwMJinm77kUl-YtptIbnTCclnXuSvLlA0Z4B1lFVSzg1FX-JyX_xfo6FmvXtkhmEjnWzAYmlZ10qAorIr07hYdaFrwSS_nO0LLQ9bgg.jpg\",\n        \"user_name\": \"Telegram News\",\n        \"message_url\": \"https://t.me/telegram/258\",\n        \"message_text\": \"For 8 more features from this update, like code highlighting in messages, custom reactions for channels, unique colors and logos for your profile, voice-to-text for everyone and more – check out the latest blog: https://telegram.org/blog/similar-channels  November Features 1 • 2 • 3 • More\",\n        \"message_photo\": [],\n        \"message_video\": [],\n        \"views\": \"4.5M\",\n        \"datetime\": \"2023-12-04T13:27:19+00:00\"\n    },\n    {\n        \"data_post\": \"telegram/259\",\n        \"data_view\": \"eyJjIjotMTAwNTY0MDg5MiwicCI6MjU5LCJ0IjoxNzA2OTQ3MjY0LCJoIjoiZDI3Y2QzY2NiNzViNjMwYWI2In0\",\n        \"user_url\": \"https://t.me/telegram\",\n        \"user_photo\": \"https://cdn1.cdn-telegram.org/file/GFUVa7B7wr28OE5SeJ1yJnZaCmd8P4sP4-d_oCTURVJ6hUSRP9Y_nb2QxQWcpNnJDfV-4kByP7EKCmhoLaTFif02B3DV_7V5dixuLFdSICCSFs1s7gAZJNkLzsUAqYmkTGfmPZnHL58r9ljEXZGUIH6pHJz-Rn7BAfQHxA-Y87exrv4LsNLL68aFGRs9vsb71EcnxxymG50u-wsysTJ4u_aql1PzOWh4TX1TyCjHTlPJl3VmwMJinm77kUl-YtptIbnTCclnXuSvLlA0Z4B1lFVSzg1FX-JyX_xfo6FmvXtkhmEjnWzAYmlZ10qAorIr07hYdaFrwSS_nO0LLQ9bgg.jpg\",\n        \"user_name\": \"Telegram News\",\n        \"message_url\": \"https://t.me/telegram/259\",\n        \"message_text\": \"Stylize Your Channel. As channels level up from subscriber boosts and giveaways, they can customize their profile, set an emoji status, add unique wallpapers and more. 🏡❄️🚗  December Features ❄️ 1 • 2 • 3 • 4 • More\",\n        \"message_photo\": [],\n        \"message_video\": [\n            \"https://cdn1.cdn-telegram.org/file/78f54bd0b3.mp4?token=YKBucZbZzGZELrwA1gLSWX0GrJKfGsZaheQchVc8K2LurR2_3KBJFp1obTLdlYdpig-zhVamIjnR5lTRm0TG4OotEAvvwF1RycDz8mU_8hjISNQmdhKhG_lKbZTYRfySR0oko8sU8arZ9azdzY2qmz9kqsI8kbr6k5ZRxIoZmmjnQozewGGGRQeVQOOrMCmd09YqNZtT28n3v_KO9rVfpliYfGBr-cRzr2IQgc3pRybOYtFkwge4Nnx0b7urT-GkekjGx4C6z-vpMNbIJROwg3R7O2Ym-Ep2enJmlefOs0iL8z886kVD6XxSoFXBBe4LyUcGxLbsOeltvLthsGcKmA\"\n        ],\n        \"views\": \"2.3M\",\n        \"datetime\": \"2023-12-24T17:44:05+00:00\"\n    }\n]\n```\n\n## License\n\nMIT\n\n## Maintainers\n\n[Nuzulul Zulkarnain](https://github.com/nuzulul/telegram-scraper)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuzulul%2Ftelegram-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuzulul%2Ftelegram-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuzulul%2Ftelegram-scraper/lists"}