[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-81727":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":28,"discoverSource":29},81727,"teleFeed","ircfspace\u002FteleFeed","ircfspace","A Go application that fetches posts from public Telegram channels and exports them as structured JSON files with automatic GitHub Actions integration.","",null,"Go",37,17,33,2,0,1,3,4,44.67,false,"main",true,[],"2026-06-12 04:01:35","# Telegram Channel Exporter\n\nA Go application that fetches posts from public Telegram channels and exports them as structured JSON files with automatic GitHub Actions integration.\n\n## ✨ Features\n\n- 🚀 **No API Required** - Uses Telegram's public RSS feed\n- 📝 **Complete Post Data** - Message content, dates, views, media, hashtags, mentions\n- 🖼️ **Media Extraction** - Photos, videos, and uploaded files with URLs\n- 🎨 **Markdown Preserved** - HTML formatting, links, and emoji support\n- 🕐 **Real Timestamps** - Accurate dates with Unix timestamps\n- 🔄 **Auto-Export** - GitHub Actions runs every 30 minutes\n- 🌿 **Clean Repository** - Separate export branch, main stays clean\n- 🛡️ **Rate Limit Protection** - Random delays and user agents\n\n## Installation\n\n1. Clone or download this project\n2. Install Go (if not already installed)\n3. Run the application:\n\n```bash\ngo run .\n```\n\nOr build it:\n\n```bash\ngo build -o telefeed\n.\u002Ftelefeed\n```\n\n## 📁 Project Structure\n\n```\ntelefeed\u002F\n├── config.json          # Channel configuration\n├── export\u002F               # Local export folder (gitignored)\n├── .github\u002Fworkflows\u002F    # GitHub Actions\n├── main.go              # Main application\n├── fetcher_colly.go     # Telegram data fetcher\n├── exporter.go          # JSON export functionality\n└── .gitignore           # Git ignore rules\n```\n\n## 🌿 Git Branch Strategy\n\n- **main**: Source code and configuration only\n- **export**: Contains JSON export files (auto-updated)\n\nThe `export\u002F` folder is gitignored to keep the main branch clean. Export files are automatically pushed to the `export` branch via GitHub Actions.\n\n## Configuration\n\nEdit `config.json` to specify which channels to export:\n\n```json\n{\n  \"channels\": [\n    \"ircfspace\",\n    \"vahidonline\",\n    \"your_channel_name\"\n  ]\n}\n```\n\n**Note:** Use only the username part without the `@` symbol.\n\n## 📊 Output Structure\n\nEach channel is exported to `export\u002F{channel_name}.json` with comprehensive data:\n\n```json\n{\n  \"info\": {\n    \"id\": 0,\n    \"title\": \"Channel Title\",\n    \"username\": \"channelname\",\n    \"photo_url\": \"https:\u002F\u002Fcdn.telesco.pe\u002Ffile\u002F...\"\n  },\n  \"posts\": [\n    {\n      \"id\": 12345,\n      \"message\": \"Post content with \u003Ca href=\\\"links\\\">HTML formatting\u003C\u002Fa>\",\n      \"date\": \"2026-05-03T09:30:00Z\",\n      \"edited\": false,\n      \"views\": 1500,\n      \"forwards\": 25,\n      \"replies\": 10,\n      \"sender_name\": \"Sender Name\",\n      \"media\": [\n        {\n          \"type\": \"photo\",\n          \"url\": \"https:\u002F\u002Fcdn.telesco.pe\u002Ffile\u002F...\",\n          \"width\": 800,\n          \"height\": 600\n        },\n        {\n          \"type\": \"video\", \n          \"url\": \"https:\u002F\u002Fcdn.telesco.pe\u002Ffile\u002F...\"\n        }\n      ],\n      \"hashtags\": [\"#example\", \"#telegram\"],\n      \"mentions\": [\"@user\"],\n      \"links\": [\"https:\u002F\u002Fexample.com\"]\n    }\n  ],\n  \"last_updated\": 1777791234\n}\n```\n\n## 🔄 Auto-Export with GitHub Actions\n\nThe project includes automated GitHub Actions that:\n\n- **Run every 30 minutes** - Automatic channel updates\n- **Separate branches** - Clean main branch, exports in `export` branch\n- **Rate limiting** - Random delays and user agents\n- **Error handling** - Continues even if some channels fail\n- **Detailed logging** - Summary reports with file statistics\n\n### Branch Strategy\n- **main**: Source code and configuration only\n- **export**: JSON export files (auto-updated)\n\n## 🛠️ Local Development\n\n### Manual Run\n```bash\ngo run .\n```\n\n### Docker Support\n```bash\n# Build and run\ndocker-compose up telefeed\n\n# Auto-run every 30 minutes\ndocker-compose --profile scheduled up telefeed-scheduled\n```\n\n## ⚙️ Configuration\n\nEdit `config.json` to specify channels:\n\n```json\n{\n  \"channels\": [\n    \"ircfspace\",\n    \"vahidonline\", \n    \"your_channel\"\n  ]\n}\n```\n\n## 🚀 Deployment\n\n### GitHub Actions (Recommended)\n1. Push code to GitHub\n2. Enable Actions in repository settings\n3. Automatic exports every 30 minutes\n\n### Manual Deployment\n```bash\n# Build binary\ngo build -o telefeed\n\n# Run with cron\n*\u002F30 * * * * cd \u002Fpath\u002Fto\u002Ftelefeed && .\u002Ftelefeed\n```\n\n## 📋 Requirements\n\n- Go 1.21 or higher\n- Internet connection\n- Public Telegram channels only\n\n## ⚠️ Limitations\n\n- **Public channels only** - No private channel support\n- **Recent posts** - Limited by Telegram's public feed\n- **Rate limits** - Built-in protection but may need adjustments\n- **HTML dependency** - May break if Telegram changes web structure\n","teleFeed 是一个用 Go 语言编写的程序，用于从公开的 Telegram 频道抓取帖子，并将它们导出为结构化的 JSON 文件，同时集成了 GitHub Actions 自动化流程。该项目无需使用 Telegram API，而是利用了 Telegram 的公共 RSS 源来获取完整的信息，包括消息内容、日期、浏览量、媒体文件等，并保留了原始的 Markdown 格式和表情符号支持。此外，它还提供了自动定时导出功能，每30分钟运行一次并通过 GitHub Actions 更新到独立的分支中，保持主分支整洁。适合需要定期收集和分析特定Telegram频道内容的场景，例如社交媒体监控、数据挖掘或内容备份等用途。","2026-06-11 04:06:09","CREATED_QUERY"]