{"id":19476086,"url":"https://github.com/hwywl/mzitu-crawler","last_synced_at":"2026-04-29T09:33:13.952Z","repository":{"id":88797473,"uuid":"157317626","full_name":"HWYWL/mzitu-crawler","owner":"HWYWL","description":"爬取mzitu网站的妹子，注意营养","archived":false,"fork":false,"pushed_at":"2018-11-13T07:04:25.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T06:35:28.984Z","etag":null,"topics":["crawler","mzitu","python"],"latest_commit_sha":null,"homepage":null,"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/HWYWL.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":"2018-11-13T03:56:41.000Z","updated_at":"2018-12-16T14:28:58.000Z","dependencies_parsed_at":"2023-06-12T16:00:29.057Z","dependency_job_id":null,"html_url":"https://github.com/HWYWL/mzitu-crawler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HWYWL%2Fmzitu-crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HWYWL%2Fmzitu-crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HWYWL%2Fmzitu-crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HWYWL%2Fmzitu-crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HWYWL","download_url":"https://codeload.github.com/HWYWL/mzitu-crawler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240701153,"owners_count":19843649,"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":["crawler","mzitu","python"],"created_at":"2024-11-10T19:36:24.607Z","updated_at":"2026-04-29T09:33:13.897Z","avatar_url":"https://github.com/HWYWL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mzitu-crawler\n爬取mzitu网站的妹子，注意营养\n\n[![license](https://img.shields.io/github/license/ZYSzys/Mzitu_Spider.svg)](https://github.com/HWYWL/mzitu-crawler/blob/master/LICENSE)\n\n### 环境\npython2.7, 3.6\n### python库\nhttp请求：requests  \n图片提取：bs4  \n存储相关: os  \n\n\n### 下载安装\n在终端输入如下命令：\n```bash\ngit clone https://github.com/HWYWL/mzitu-crawler.git\n```\n\n### 使用方法\n在当前目录下输入：\n```bash\ncd mzitu-crawler\npip install -r requirements.txt\npython main.py\n```\n\n### 修改爬取的数量\n```python\nif __name__ == '__main__':\n    # 当前页\n    current = 1\n    # 总页数\n    total = 100\n\n    while current \u003c total:\n        mz = MeiZe(\"http://www.mzitu.com/page/\", current)\n        mz.domainHtml()\n        mz.getMaxPage()\n        mz.downloading()\n        current += 1\n```\n\n运行爬虫，如图所示  \n![](https://i.imgur.com/6508MeF.jpg)\n\n稍等几分钟后，当前目录下生成Mzitu文件夹，首页每套图以存储在其中  \n![](https://i.imgur.com/6mbzr7u.jpg)\n\n老板再来两瓶营养快线\n![](https://i.imgur.com/vvjYCeP.jpg)\n\n### 问题建议\n\n- 联系我的邮箱：ilovey_hwy@163.com\n- 我的博客：http://www.hwy.ac.cn\n- GitHub：https://github.com/HWYWL","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwywl%2Fmzitu-crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwywl%2Fmzitu-crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwywl%2Fmzitu-crawler/lists"}