{"id":48094426,"url":"https://github.com/mashukui/dy_trans_tool","last_synced_at":"2026-04-04T15:34:36.795Z","repository":{"id":312256112,"uuid":"1046784030","full_name":"mashukui/dy_trans_tool","owner":"mashukui","description":"用python开发的抖音转换gui界面软件工具，支持抖音号和主页链接uid相互转换、作品链接app端转为pc端等。抖音爬虫|抖音工具|抖音采集工具|抖音采集|抖音采集软件|抖音效率工具|抖音爬取数据|douyin|Douyin","archived":false,"fork":false,"pushed_at":"2026-02-12T00:18:01.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-12T10:48:20.221Z","etag":null,"topics":["crawler","douyin","douyin-api","gui","gui-application","python3"],"latest_commit_sha":null,"homepage":"https://github.com/mashukui/dy_trans_tool","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mashukui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-29T08:09:51.000Z","updated_at":"2026-02-12T00:18:04.000Z","dependencies_parsed_at":"2025-08-29T14:36:53.112Z","dependency_job_id":"38a2be55-2652-42fe-a4d7-7f8db6945880","html_url":"https://github.com/mashukui/dy_trans_tool","commit_stats":null,"previous_names":["mashukui/dy_trans_tool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mashukui/dy_trans_tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mashukui%2Fdy_trans_tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mashukui%2Fdy_trans_tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mashukui%2Fdy_trans_tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mashukui%2Fdy_trans_tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mashukui","download_url":"https://codeload.github.com/mashukui/dy_trans_tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mashukui%2Fdy_trans_tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["crawler","douyin","douyin-api","gui","gui-application","python3"],"created_at":"2026-04-04T15:34:36.495Z","updated_at":"2026-04-04T15:34:36.769Z","avatar_url":"https://github.com/mashukui.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# dy_trans_tool\n\u003e _马哥原创：用python开发的抖音转换工具，目前支持3种功能的转换。_\n\n\u003e _本软件工具仅限于学术交流使用，严格遵循相关法律法规，符合平台内容合法合规性，禁止用于任何商业用途！_\n\n# 一、背景分析\n## 1.1 开发背景与功能介绍\n\u003cimg width=\"1015\" height=\"184\" alt=\"抖音slogon\" src=\"https://github.com/user-attachments/assets/e7df16d3-8b68-41ce-a8c0-efc1ddb41c88\" /\u003e\n\n我是[@马哥python说](https://github.com/mashukui)，一枚10年+程序猿，现全职独立开发。\n\n曾经和很多用户聊过，他们希望有一个小工具，可以把抖音个人主页链接（或者sec_uid）转换成抖音号，或者反之（把抖音号转成主页链接/sec_uid），为了满足这类需求，我特意用python开发了这款工具：**dy_trans_tool**\n\n软件支持以下3个功能：\n\n功能1、把个人主页链接批量转换成抖音号：\n![主页链接转抖音号](https://files.mdnice.com/user/32110/20c07aa5-6e74-4f59-88ab-836c2e10d831.png)\n\n主页链接转抖音号的结果csv文件：\n![抖音转换1.csv](https://files.mdnice.com/user/32110/c9a604f6-fbb6-4b05-abf7-4afb7f84a261.png)\n\n功能2、把抖音号批量转换成主页链接：\n![抖音号转主页链接](https://files.mdnice.com/user/32110/f1f8094e-2964-4479-9bbb-3210e15c58e6.png)\n\n抖音号转主页链接的结果csv文件：\n![抖音转换2.csv](https://files.mdnice.com/user/32110/abc45922-9d85-4a27-90b8-baa2cd1df1a0.png)\n\n功能3、把app端作品链接批量转换成pc端作品链接：\n![image](https://files.mdnice.com/user/32110/3f6fb685-97f8-4a97-ba81-e415b26c7c5f.png)\n\napp端链接转pc端链接的结果csv文件：\n![抖音转换3.csv](https://files.mdnice.com/user/32110/996c704f-6827-40a1-8983-50f3edf3662c.png)\n\n以上。\n\n## 1.2 软件说明\n\n几点重要说明，请详读了解：\n```\n1. Windows系统、Mac系统均可直接运行，对文科生非常友好！\n2. 软件通过接口协议爬取，并非通过模拟浏览器等RPA类工具，稳定性较高！\n3. 软件目前支持3个功能：主页链接和抖音号互转、app端作品链接转为pc端作品链接\n5. 软件运行完成后，会在当前文件夹（即，软件所在文件夹）生成csv结果文件\n6. 爬取过程中，每爬一条，存一次csv。并非爬完最后一次性保存！防止因异常中断导致丢失前面的数据（每条间隔1~2s）\n7. 爬取过程中，有log文件详细记录运行过程，方便回溯\n```\n# 二、主要技术\n## 2.1 模块介绍\n\n软件全部模块采用python语言开发，主要分工如下：\n```python\ntkinter：GUI软件界面\nrequests：爬虫请求\njson：解析响应数据\ntime：间隔等待，防止反爬\ncsv：保存csv结果\nlogging：日志记录\n```\n出于版权考虑，暂不公开完整源码，仅向用户提供软件使用。\n\n## 2.2 部分源码\n软件界面：\n```python\n# 创建主窗口\nroot = tk.Tk()\nroot.title('抖音转换工具v1.0 | 马哥python说')\n# 设置窗口大小\nroot.minsize(width=850, height=660)\n```\n爬虫请求：\n```python\n# 发送请求\nr = requests.post(url, headers=h1, data=json_data)\n# 接收响应数据\njson_data = r.json()\n```\n保存数据：\n```python\n# 存入csv文件\nwith open(ins.result_file, 'a+', encoding='utf_8_sig', newline='') as f:\n\twriter = csv.writer(f)\n\twriter.writerow([url, redId])\n```\n日志记录：\n```python\ndef get_logger(self):\n\tself.logger = logging.getLogger(__name__)\n\t# 日志格式\n\tformatter = '[%(asctime)s-%(filename)s][%(funcName)s-%(lineno)d]--%(message)s'\n\t# 日志级别\n\tself.logger.setLevel(logging.DEBUG)\n\t# 控制台日志\n\tsh = logging.StreamHandler()\n\tlog_formatter = logging.Formatter(formatter, datefmt='%Y-%m-%d %H:%M:%S')\n\t# info日志文件名\n\tinfo_file_name = time.strftime(\"%Y-%m-%d\") + '.log'\n\t# 将其保存到特定目录\n\tcase_dir = r'./logs/'\n\tinfo_handler = TimedRotatingFileHandler(filename=case_dir + info_file_name,\n\t\t\t\t\t\t\t\t\t\t\twhen='MIDNIGHT',\n\t\t\t\t\t\t\t\t\t\t\tinterval=1,\n\t\t\t\t\t\t\t\t\t\t\tbackupCount=7,\n\t\t\t\t\t\t\t\t\t\t\tencoding='utf-8')\n\tself.logger.addHandler(sh)\n\tsh.setFormatter(log_formatter)\n\tself.logger.addHandler(info_handler)\n\tinfo_handler.setFormatter(log_formatter)\n\treturn self.logger\n```\n\n# 三、演示视频\n软件使用过程演示视频：[【软件演示】抖音批量转换工具，主页链接和抖音号互转！](https://mp.weixin.qq.com/s/kywWBlAEePTVNVy_fw_H3Q)\n\n# 四、付费说明\n## 4.1 卡密说明\n\n费用如下：\n```python\n日卡：使用期限1天，39元。适合试用等临时场景\n月卡：使用期限1个月，149元。适合短期采集需求\n季卡：使用期限3个月，399元。适合中期采集需求\n年卡：使用期限1年，799元。适合长期采集需求\n```\n**[点击这里，自助开通！](https://mgnb.pro/product/douyin)**\n\n## 4.2 一机一码\n软件采用一机一码机制，一个卡密只能在一台电脑运行、不可多电脑运行。\n\n## 4.3 软件多开\n一台电脑仅允许运行一个软件，不支持软件多开。\n\n# 五、软件包获取\n\n**本项目已整合到[爬抖音聚合软件(douyin_one_spider)](https://github.com/mashukui/douyin_one_spider)，建议直接使用聚合版本，功能更全面、维护更及时！**\n\n公众号\"**老男孩的平凡之路**\"，后台回复\"**爬抖音聚合软件**\"获取最新软件安装包。\n\u003cimg width=\"1938\" height=\"364\" alt=\"二维码-公众号放底部v2\" src=\"https://github.com/user-attachments/assets/0ea30f91-b6d1-4038-885d-b7b840d2043f\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmashukui%2Fdy_trans_tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmashukui%2Fdy_trans_tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmashukui%2Fdy_trans_tool/lists"}