{"id":39490883,"url":"https://github.com/lonsty/weibo-image-spider","last_synced_at":"2026-01-18T05:34:54.662Z","repository":{"id":43325674,"uuid":"250832888","full_name":"lonsty/weibo-image-spider","owner":"lonsty","description":"微博图片爬虫，极速下载、高清原图、多种命令、简单实用。","archived":false,"fork":false,"pushed_at":"2021-11-13T17:29:08.000Z","size":3008,"stargazers_count":61,"open_issues_count":4,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-06T13:37:48.311Z","etag":null,"topics":["downloader","image-spider","weibo"],"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/lonsty.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":"2020-03-28T15:43:09.000Z","updated_at":"2023-02-26T04:36:19.000Z","dependencies_parsed_at":"2022-09-01T21:03:11.376Z","dependency_job_id":null,"html_url":"https://github.com/lonsty/weibo-image-spider","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/lonsty/weibo-image-spider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonsty%2Fweibo-image-spider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonsty%2Fweibo-image-spider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonsty%2Fweibo-image-spider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonsty%2Fweibo-image-spider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lonsty","download_url":"https://codeload.github.com/lonsty/weibo-image-spider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonsty%2Fweibo-image-spider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28530916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["downloader","image-spider","weibo"],"created_at":"2026-01-18T05:34:54.046Z","updated_at":"2026-01-18T05:34:54.656Z","avatar_url":"https://github.com/lonsty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weibo Image Spider\n\n微博图片爬虫，极速下载、高清原图、多种命令、简单实用。\n\n### 特点：\n\n- [x] 极速下载：多线程异步下载，可以根据需要设置线程数\n- [x] 异常重试：只要重试次数足够多，就没有下载不下来的图片 \\(^o^)/！\n- [x] 增量下载：用户有新的上传，再跑一遍程序就行了 O(∩_∩)O 嗯！\n- [x] 高清原图：默认下载高清原图，可以使用参数 `--thumbnail` 下载缩略图（宽最大 690px）\n\n### 环境：\n\n- `python3.6` 及以上\n\n# 快速使用\n\n## 1. 克隆项目到本地\n\n```sh\n$ git clone https://github.com/lonsty/weibo-image-spider.git\n```\n\n## 2. 安装依赖包\n\n```sh\n$ cd weibo-image-spider\n$ pip install -r requirements.txt\n```\n\n## 3. 快速使用\n\n**注意**：\n\n*因网页版微博限制，使用爬虫请求其 API 时，需要 cookie 认证，关于 [如何获取 cookie](docs/get_cookie.md)？\n且 cookie 有效期为一天（第二天零点失效），所以最好不要跨天爬取。*\n\n下载用户昵称或用户ID 为 `nickname`（或 `user-id`） 的最新 2000（可使用 `-n` 修改） 张图片到路径 `dest` 下：\n\n```sh\n$ python main.py -u \u003cnickname/user-id\u003e -d \u003cdest\u003e\n```\n\n运行截图\n\n![screenshot_1.png](docs/screenshot_1.png)\n\n爬取结果\n\n![screenshot_2.png](docs/screenshot_2.png)\n\n# 使用帮助\n\n### 常用命令\n\n- 部分图片 **下载失败** 或 **微博有更新**，再执行相同的命令，对失败或新增的图片进行下载\n\n```sh\n$ python main.py -u \u003cnickname\u003e -d \u003cdest\u003e\n```\n\n### 查看所有命令\n\n```\n$ python main.py --help\n\nUsage: main.py [OPTIONS]\n\n  A Weibo image spider, visit https://github.com/lonsty/weibo-image-spider.\n\nOptions:\n  -u, --nickname, --user-id TEXT  Nickname or User ID\n  -d, --destination TEXT          Directory to save images  [default:\n                                  weibo_images/]\n\n  -o, --overwrite                 Overwrite existing files  [default: False]\n  -t, --thumbnail                 Download thumbnails with a maximum width of\n                                  690px  [default: False]\n\n  -n, --max-images INTEGER        Maximum number of images to download\n                                  [default: 2000]\n\n  -w, --max-workers INTEGER       Maximum thread workers  [default: 15]\n  -P, --proxies TEXT              Use proxies to access websites. Example:\n                                  '{\"http\":\n                                  \"user:passwd@www.example.com:port\", \"https\":\n                                  \"user:passwd@www.example.com:port\"}'\n\n  --help                          Show this message and exit.\n\n```\n\n# 更新历史\n\n- ## Version 0.1.2 (2021-11-13)\n\n    - 修复查询用户信息失败，导致无法继续下载的问题\n\n- ## Version 0.1.1 (2021-08-26)\n\n    新功能：\n    \n    - 支持使用用户 ID（User ID）下载：`python main.py -u \u003cuser id\u003e`\n\n- ## Version 0.1.0 (2021-05-16)\n    \n    - 调整代码结构\n    - 修复偶发的图片下载不完整的问题\n    - 修复下载总量与给定量不一致的问题\n\n- ## Version 0.1.0a (2020-03-29)\n\n    主要功能：\n    \n    - 极速下载：多线程异步下载，可以根据需要设置线程数\n    - 异常重试：只要重试次数足够多，就没有下载不下来的图片 \\(^o^)/！\n    - 增量下载：用户有新的上传，再跑一遍程序就行了 O(∩_∩)O 嗯！\n    - 高清原图：默认下载高清原图，可以使用参数 `--thumbnail` 下载缩略图（宽最大 690px）\n\n# LICENSE\n\n此项目使用 [MIT](LICENSE) 开源协议\n\n**注意**：使用此工具下载的所有内容，版权归原作者所有，请谨慎使用！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonsty%2Fweibo-image-spider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonsty%2Fweibo-image-spider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonsty%2Fweibo-image-spider/lists"}