MediaCrawler README

The project's README from github.com/NanmiCoder/MediaCrawler. As one markdown file: README.md.

MediaCrawler 项目停止维护与代码删除公告

感谢大家一直以来对 MediaCrawler 项目的关注与支持。

本项目最初开源的初衷,仅是记录个人学习数据采集与工程实践的过程,方便大家阅读源码、交流学习。随着项目影响力和传播范围不断扩大,作者已无法确保所有使用者都将相关代码严格用于学习研究。出于对数据隐私、平台规则以及合规风险的审慎考量,经慎重决定:

  1. 永久停止维护与分发:即日起,本仓库永久停止所有功能的开发、更新、维护及代码分发。
  2. 删除全部代码:本仓库内的所有历史源代码、脚本、文档与演示内容均已彻底删除,仅保留本公告。
  3. 合规提醒:作者不支持、不鼓励、也不参与任何形式的另建公开仓库、公开 Fork 传播或违规采集行为。请勿将任何历史代码或第三方副本用于违反法律法规、侵犯他人合法权益、破坏平台访问控制或商业滥用的用途。

感谢理解与配合,江湖路远,有缘再见。


🙏 鸣谢赞助商 / Sponsors & Acknowledgements

衷心感谢以下赞助商在项目维护期间给予的支持与信任(本项目已永久停更并删除全部代码,此处仅保留致谢展示,请用户在合法合规前提下使用第三方服务):

赞助商 / Sponsor 介绍 / Description
TikHub TikHub.io 提供高稳定性公开数据接口与结构化数据集服务,使用邀请码 cfzyejV9 注册并充值 可额外获得 $2 赠送额度。
NodeMaven NodeMaven 是面向网络测试与自动化场景的高质量代理服务商,提供 99.9% 可用性、地区定位、IP 质量过滤及配套检测工具。使用优惠码 CRAWLER35 可享移动和住宅代理 35% 折扣,使用 CRAWLER40 可享静态 ISP 代理 40% 折扣。👉 访问 NodeMaven
MangoProxy MangoProxy 提供覆盖 200+ 国家的住宅、ISP、数据中心及移动代理网络,支持 HTTP(S)、SOCKS5、灵活轮换与 API 接入。使用优惠码 CODER 购买静态 ISP 代理可享 7% 优惠。👉 访问 MangoProxy
ThorData ThorData 提供覆盖 190+ 国家和地区的全球住宅代理网络与 API 文档,支持国家、城市与 ASN 定位及旋转/粘性会话,住宅代理低至 $0.65/GB,支持 3 天免绑卡试用;使用优惠码 Crawler10 可享额外 10% 折扣。👉 立即体验 ThorData

Notice of Permanent Discontinuation & Code Removal

Thank you for your interest and support in MediaCrawler.

This repository was originally created to share personal learning notes and source code for educational exchange. As its reach grew, it became impossible to ensure that all downstream usage remained strictly for learning purposes. Out of respect for privacy, platform rules, and compliance considerations:

  1. Permanent Discontinuation: Development, maintenance, and code distribution for this repository are permanently discontinued.
  2. Complete Code Deletion: All source code, scripts, documentation, and commit history have been permanently deleted from this repository. Only this notice remains.
  3. Compliance Reminder: The author does not endorse any redistribution, unauthorized data collection, or misuse. Please do not use any historical code or third-party copies in violation of applicable laws, regulations, or platform terms of service.

MediaCrawler (NanmiCoder/MediaCrawler)

douyin
Searching Database…

What is this?A multi-platform crawler for Chinese social media: it collects keyword search results, specific posts, and their comments from Xiaohongshu, Douyin, Kuaishou, Bilibili, Weibo, Tieba, and Zhihu.
Do I have to live in the terminal, or is there a UI?Both work: run it from the command line, or drive it through the built-in WebUI to configure a crawl, watch live status and logs, and preview or export data.
What does a first run look like?After installing the dependencies, the default CDP mode needs Chrome 144+ with remote debugging enabled at chrome://inspect/#remote-debugging; the crawler then drives your logged-in browser.
What do I need on my machine before installing?uv for the Python packages, plus Node.js 16 or newer — Node is a hard requirement for crawling Douyin and Zhihu. A browser driver is only needed if you switch off CDP mode for standard Playwright.
Am I allowed to use the data however I want?No. The disclaimer scopes it to learning and research: commercial use is banned, as is large-scale crawling of the platforms or any other illegal use.
Will it run on my Windows PC, or is this a Mac/Linux thing?It is plain Python plus Node and Chrome, so Windows, macOS and Linux all work; everything runs on your own machine, with results saved locally.
How does it grab request signatures without reverse-engineering each platform?It logs in through a real browser driven by Playwright, then reads the needed signature parameters via JS expressions inside that logged-in context, so the platforms' encryption never has to be cracked.
Which crawl features work on all seven platforms?Keyword search, crawling by post ID, second-level comments, a chosen creator's homepage, cached login state, an IP proxy pool, and generating a word cloud from comments are supported on every platform.
What formats can the scraped data be saved in?Locally, in whichever storage you configure: CSV, JSON, JSONL, Excel, SQLite, or a MySQL database.
What is MediaCrawlerPro?A paid subscription sibling by the same author: it adds resumable crawling, multi-account runs, removal of the Playwright dependency, full Linux support, a desktop video downloader, and a refactored architecture the author says is worth studying.
Creator
NanmiCoder
Size
30 MB
Stars
71.3K
Updated
CommitNov 17
Age
3y
Commits · 90 Days