{"id":19285981,"url":"https://github.com/chenjiandongx/wallpaper","last_synced_at":"2025-07-27T01:05:02.299Z","repository":{"id":92058855,"uuid":"94695821","full_name":"chenjiandongx/wallpaper","owner":"chenjiandongx","description":"zol 手机壁纸爬虫（简单分布式？）","archived":false,"fork":false,"pushed_at":"2018-05-21T01:14:19.000Z","size":460,"stargazers_count":27,"open_issues_count":1,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T04:20:58.246Z","etag":null,"topics":["wallpaper","zol"],"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/chenjiandongx.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}},"created_at":"2017-06-18T15:28:01.000Z","updated_at":"2024-12-15T10:45:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a11bc659-eb22-4bc1-8c46-371e7a62afff","html_url":"https://github.com/chenjiandongx/wallpaper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chenjiandongx/wallpaper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fwallpaper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fwallpaper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fwallpaper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fwallpaper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenjiandongx","download_url":"https://codeload.github.com/chenjiandongx/wallpaper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fwallpaper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267278631,"owners_count":24063252,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"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":["wallpaper","zol"],"created_at":"2024-11-09T21:47:35.156Z","updated_at":"2025-07-27T01:05:02.280Z","avatar_url":"https://github.com/chenjiandongx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zol 手机壁纸爬虫\n\n这两天在找手机壁纸，不过发现一张一张来效率太低。话不多说，爬虫在手，天下我有！  \n\n爬取网站：[http://sj.zol.com.cn/bizhi/](http://sj.zol.com.cn/bizhi/)  \n\n至于为什么选这个 zol 的手机壁纸网站，没办法，某度搜索出来第一个，树大招风！  \n\n代码用 Python 写的，第三方类库只用了 requests，老少皆宜。匹配只用了正则表达式。利用多进程提高爬取速度。\n\n壁纸大小为 750 * 1334（iphone6 的分辨率），大小可在代码里自行更改，最高的分辨率为 1080 * 1920（iphone6s plus 的分辨率）。  \n\n总共爬取了 **420** 套，共 **3941** 张壁纸。  \n\n![wallpaper_0](https://github.com/chenjiandongx/wallpaper/blob/master/images/wallpaper_0.png)  \n\n具体情况如下图，以套图为单位存放在不同的文件夹  \n\n![wallpaper_1](https://github.com/chenjiandongx/wallpaper/blob/master/images/wallpaper_1.png)  \n\n囊括了各种风格的壁纸！！\n\n然而，事情到这里还没有结束。这两天看了 redis 的文档，就想利用 redis 来搞个简单的分布式爬虫。前期工作的下载和配置 redis 我就不说了。核心逻辑是先将所有连接存入到本机的 redis 数据库里，本机作为 master。然后其他 slave 连接到 master 分配任务干活。但是，你以为我既没有另外一台电脑也没有钱购买虚拟主机这件事我会告诉你？最后就只用了本机爬...  ，anyway，最后也同样把所有的套图都爬下来了。这部分代码在 wallpaper_redis.py 里。  \n\n壁纸已打包上传到百度云里：链接: [https://pan.baidu.com/s/1boZ6XTP](https://pan.baidu.com/s/1boZ6XTP) 密码: q8k6  \n\n为了深入贯彻党提倡的二十四字社会主义核心价值观，请允许我先大家安利下面这张壁纸  \n\n![wallpaper_2](https://github.com/chenjiandongx/wallpaper/blob/master/images/wallpaper_2.jpg)\n\n**永远热血，永远热泪盈眶！**\n\n\n### License\n\nMIT [© chenjiandongx](https://github.com/chenjiandongx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenjiandongx%2Fwallpaper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenjiandongx%2Fwallpaper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenjiandongx%2Fwallpaper/lists"}