# (2022.06.16) imfirefly脚本制作的CC-CEDICT

**URL:** <https://forum.freemdict.com/t/topic/13614>\
**Category:** 汉英\
**Created:** [2022 年6 月 15 日 12:27 UTC](https://forum.freemdict.com/t/topic/13614 "2022-06-15T12:27:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

作者： ![kadioguy](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/k/9de0a6/32.png) [@kadioguy](https://forum.freemdict.com/u/kadioguy)\
发布日期： [2022 年6 月 15 日 12:27 UTC](https://forum.freemdict.com/t/topic/13614/1 "2022-06-15T12:27:08Z")

</div>

来源：[[2016.07.21]CC-CEDICT汉英词典[开源] - MDict 词库资源区 - MDict Dictionaries - 掌上百科 - PDAWIKI - Powered by Discuz!](https://www.pdawiki.com/forum/forum.php?mod=viewthread&tid=14040&page=1#pid211240)

[CC-CEDICT.py](https://forum.freemdict.com/uploads/short-url/cSBxiBGkVaVq3tBZGzPmag3TxA4.py) (15.7 KB)  
[说明.txt](https://forum.freemdict.com/uploads/short-url/33XRBIFHeQbIXz28m296mS4zTtw.txt) (2.0 KB)

我这边试不成功，不晓得是操作有误还是网站路径变了之类的，可否请了解python的朋友帮忙测试一下，谢谢！

---

<div class="post-metadata">

作者： ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
发布日期： [2022 年6 月 15 日 16:17 UTC](https://forum.freemdict.com/t/topic/13614/2 "2022-06-15T16:17:43Z")

</div>

将第 68 行改为如下即可。

```python
    url = 'https://www.mdbg.net/chinese/export/cedict/' +ZIP_NAME

```

---

<div class="post-metadata">

作者： ![kadioguy](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/k/9de0a6/32.png) [@kadioguy](https://forum.freemdict.com/u/kadioguy)\
发布日期： [2022 年6 月 16 日 02:09 UTC](https://forum.freemdict.com/t/topic/13614/3 "2022-06-16T02:09:37Z")

</div>

感谢hua指点，已制作完毕，和各位分享：

2022.06.16的资料

繁体版（已合并相同词头的词条）The number of entries: 118499  
[CC-CEDICT(漢英字典).mdx](https://forum.freemdict.com/uploads/short-url/rFhEMS5PTwR7YoxaQRhVg1ffrQp.mdx) (5.1 MB)  
[mdbg.css](https://forum.freemdict.com/uploads/short-url/4CzEU8dBVGs6lDhD2hnvZ6pTPUQ.css) (936 位元組)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/c/f/cfe18a9d7773b3763ce5cdab2aacbe80d41dc28c.png)

简体版 （已合并相同词头的词条）The number of entries:117368  
[CC-CEDICT(汉英字典).mdx](https://forum.freemdict.com/uploads/short-url/csf1l12vRGiV7dLFml7rjZx57jQ.mdx) (5.1 MB)  
[mdbg.css](https://forum.freemdict.com/uploads/short-url/4CzEU8dBVGs6lDhD2hnvZ6pTPUQ.css) (936 位元組)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/3/e/3e1fa9e8a628048d17f40b7995390fbb705858c6.png)

---

<div class="post-metadata">

作者： ![sculiuchang](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@sculiuchang](https://forum.freemdict.com/u/sculiuchang)\
发布日期： [2022 年6 月 16 日 05:10 UTC](https://forum.freemdict.com/t/topic/13614/4 "2022-06-16T05:10:09Z")

</div>

辛苦啦！！！这个真的很好。

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2024 年2 月 12 日 00:30 UTC](https://forum.freemdict.com/t/topic/13614/5 "2024-02-12T00:30:00Z")

</div>

python窗口在写入最终的词典源文件那一段开始不久就会闪退，不知道为啥
