{"id":16975701,"url":"https://github.com/googujiang/gu-picbot","last_synced_at":"2025-04-14T21:41:43.329Z","repository":{"id":102728686,"uuid":"606108549","full_name":"GooGuJiang/Gu-PicBot","owner":"GooGuJiang","description":"🤖GooGu's Illustration Downloading BOT","archived":false,"fork":false,"pushed_at":"2023-03-28T11:59:46.000Z","size":127,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T09:43:14.645Z","etag":null,"topics":["bot","pixiv","python","python3","telegram","twtter"],"latest_commit_sha":null,"homepage":"https://t.me/Goo_moe","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GooGuJiang.png","metadata":{"files":{"readme":"README-zh.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":"2023-02-24T16:07:46.000Z","updated_at":"2025-02-07T14:17:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"79e533b7-90fd-42f3-a043-3fc220b8e9d6","html_url":"https://github.com/GooGuJiang/Gu-PicBot","commit_stats":null,"previous_names":["googujiang/gu-picbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GooGuJiang%2FGu-PicBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GooGuJiang%2FGu-PicBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GooGuJiang%2FGu-PicBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GooGuJiang%2FGu-PicBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GooGuJiang","download_url":"https://codeload.github.com/GooGuJiang/Gu-PicBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248965844,"owners_count":21190680,"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","pixiv","python","python3","telegram","twtter"],"created_at":"2024-10-14T01:23:37.297Z","updated_at":"2025-04-14T21:41:43.302Z","avatar_url":"https://github.com/GooGuJiang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e✏咕谷の插画下载BOT\u003c/h1\u003e\n  \u003cp\u003e✏ 一个可以下载Pixiv和Twitter的图片并上传到Telegram频道的机器人\u003c/p\u003e\n\n  ![](https://ggj.moe/wp-content/uploads/2023/03/botimg.webp)\n\u003c/div\u003e\n\n## 😀 具有以下功能\n- 基于RssHub订阅Pixiv收藏并推送\n- 解析Pixiv链接并推送\n- 解析Twtter链接并推送\n\n## 🤔 快速开始\n\n### \u003cimg src=\"https://user-images.githubusercontent.com/511499/117447182-29758200-af0b-11eb-97bd-58723fee62ab.png\" alt=\"Docker\" height=\"28px\" align=\"top\"/\u003e Docker\n\n1. 拉取 Docker 镜像\n\n```bash\n$ docker pull googujiang/gu-picbot\n```\n\n2. 创建机器人数据文件夹\n```bash\n$ mkdir ~/gu-picbot\n```\n\n3. 创建并运行容器\n\n```bash\n$ docker run --name gu-picbot \\\n    -v ~/gu-picbot:/data \\\n    -e CHANNEL_ID=\u003cchannel_id\u003e \\\n    -e BOT_TOKEN=\u003cbot_token\u003e \\\n    -e RSS_URL=\u003crss_url\u003e \\\n    -e REFRESH_TOKEN=\u003crefresh_token\u003e \\\n    -e BOT_ADMIN=\u003cbot_admin\u003e \\\n    -d googujiang/gu-picbot\n```\n\n**注意：**\n* `\u003cchannel_id\u003e` `\u003cbot_token\u003e` `\u003crss_url\u003e` `\u003crefresh_token\u003e`请参考下面 [❤️ 配置说明](#%EF%B8%8F-配置说明) 填写\n\n* `BOT_ADMIN` 多个管理员请使用 `,` 分割 \n\n### 普通方式\n\n1. 确保 `python` 的版本为 `\u003e=3.6.*` 以上\n\n2. 将本仓库 `clone` 到本地:\n\n```bash\n$ git clone https://github.com/GooGuJiang/Gu-Random-Image.git\n```\n\n3. 安装所需库\n\n```bash\n$ pip install -r requirements.txt\n```\n\n4.填写配置文件\n\n\n5.运行\n\n```bash\n$ python3 main.py\n```\n\n## 🤖 命令列表\n\n目前只能解析Pixiv和Twtter链接，更多功能陆续添加。\n\n## ❤️ 配置说明\n\n以下是配置参数的详细说明：\n\n| 参数名 | 描述 |\n| --- | --- |\n| REFRESH\\_TOKEN | 用登陆Pixiv的刷新令牌 |\n| RSS\\_URL | RSS订阅的URL |\n| BOT\\_TOKEN | Telegram机器人Token |\n| CHANNEL\\_ID | 发送消息的频道或群组的唯一标识符 |\n| BOT\\_ADMIN | 机器人管理员的用户ID列表 |\n| RSS\\_SECOND | RSS更新检查的时间间隔（单位：秒） |\n| PROXY | 代理服务器的URL |\n| PROXY\\_OPEN | 是否启用代理服务器 |\n| LOG\\_OPEN | 是否启用日志记录功能 |\n| FILE\\_DELETE | 是否启用下载后删除文件 |\n\n注意事项：\n\n*   REFRESH\\_TOKEN、BOT\\_TOKEN和CHANNEL\\_ID是必填参数，且必须正确配置才能正常运行机器人。\n*   RSS\\_URL和RSS\\_OPEN参数用于启用和配置RSS订阅功能，可选。\n*   PROXY和PROXY\\_OPEN参数用于启用和配置代理服务器，可选。\n*   BOT\\_ADMIN参数用于配置机器人管理员，机器人管理员具有特殊权限，可对机器人进行管理操作。\n*   参数的值必须使用双引号包含起来，且必须与参数名之间用等号连接。\n\n## ⁉️ 已知问题\n\n\u003cdetails\u003e \n\u003csummary\u003e \n启动时遇到\u003ccode\u003eCloudflare version 2 Captcha\u003c/code\u003e\n\u003c/summary\u003e \n解决方案:\n\n请尝试重新启动几次试试，撞Cloudflare验证了，还是不行就更换IP。\n\u003c/details\u003e \n\n## 鸣谢\n\nTwtter图片下载的部分代码来自 [推特媒体文件下载工具](https://github.com/mengzonefire/twitter-media-downloader)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogujiang%2Fgu-picbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogujiang%2Fgu-picbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogujiang%2Fgu-picbot/lists"}