Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfcherng/wiki-cgroup-crawler
此腳本用於抓取維基百科的公共轉換組詞庫,並將結果儲存為外部檔案。
https://github.com/jfcherng/wiki-cgroup-crawler
crawler php-71 wiki-cgroup-crawler wikipedia
Last synced: 3 months ago
JSON representation
此腳本用於抓取維基百科的公共轉換組詞庫,並將結果儲存為外部檔案。
- Host: GitHub
- URL: https://github.com/jfcherng/wiki-cgroup-crawler
- Owner: jfcherng
- License: mit
- Archived: true
- Created: 2018-03-21T01:45:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T18:59:15.000Z (about 5 years ago)
- Last Synced: 2024-09-24T20:02:56.569Z (3 months ago)
- Topics: crawler, php-71, wiki-cgroup-crawler, wikipedia
- Language: PHP
- Homepage:
- Size: 94.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# Wiki-CGroup-Crawler [![Build Status](https://travis-ci.org/jfcherng/Wiki-CGroup-Crawler.svg?branch=master)](https://travis-ci.org/jfcherng/Wiki-CGroup-Crawler)
此腳本用於抓取維基百科的公共轉換組詞庫,並將結果儲存為外部檔案。
- https://zh.wikipedia.org/wiki/Category:公共轉換組模板
- https://zh.wikipedia.org/wiki/Category:公共转换组模块# 安裝
`$ composer require jfcherng/wiki-cgroup-crawler`
# 範例
詳見 `demo.php` 。執行 `$ php demo.php` 後,結果將存放於 `results` 資料夾。
以下是 `results/Wow.json` ([魔獸世界 公共轉換組](https://zh.wikipedia.org/wiki/%E6%A8%A1%E5%9D%97:CGroup/Wow)) 的部分內容:
```javascript
[
{
"zh-cn": "暗夜精灵",
"zh-tw": "夜精靈",
"original": "Nightelf"
},
{
"zh-cn": "亡灵",
"zh-tw": "不死族",
"original": "Undead"
},
{
"zh-cn": "巨魔",
"zh-tw": "食人妖",
"original": "Troll"
},
{
"zh-cn": "侏儒",
"zh-tw": "地精",
"original": "Gnome"
},
// ... 以下省略
]
```Thank you guys for sending me some cups of coffee.