Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

此腳本用於抓取維基百科的公共轉換組詞庫,並將結果儲存為外部檔案。

License

Notifications You must be signed in to change notification settings

jfcherng/Wiki-CGroup-Crawler

Repository files navigation

Wiki-CGroup-Crawler Build Status

此腳本用於抓取維基百科的公共轉換組詞庫,並將結果儲存為外部檔案。

安裝

$ composer require jfcherng/wiki-cgroup-crawler

範例

詳見 demo.php 。執行 $ php demo.php 後,結果將存放於 results 資料夾。

以下是 results/Wow.json魔獸世界 公共轉換組) 的部分內容:

[
    {
        "zh-cn": "暗夜精灵",
        "zh-tw": "夜精靈",
        "original": "Nightelf"
    },
    {
        "zh-cn": "亡灵",
        "zh-tw": "不死族",
        "original": "Undead"
    },
    {
        "zh-cn": "巨魔",
        "zh-tw": "食人妖",
        "original": "Troll"
    },
    {
        "zh-cn": "侏儒",
        "zh-tw": "地精",
        "original": "Gnome"
    },
    // ... 以下省略
]

Supporters

Thank you guys for sending me some cups of coffee.

About

此腳本用於抓取維基百科的公共轉換組詞庫,並將結果儲存為外部檔案。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages