Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynafloating authored Oct 8, 2018
1 parent b364f78 commit 8a00b53
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# ISO3166-1-ZH
Country list contains code, names and chinese name (both traditional and simplified). Data retrieved from following Wiki page:
- https://zh.wikipedia.org/zh-tw/ISO_3166-1
- https://zh.wikipedia.org/zh-cn/ISO_3166-1

---
包含代碼、名稱與中文名稱(正體與簡體)的國家清單。資料來自下列 Wiki 頁面:
- https://zh.wikipedia.org/zh-tw/ISO_3166-1
- https://zh.wikipedia.org/zh-cn/ISO_3166-1


## Install package via NuGet (使用 NuGet 安裝此套件)
You can install this package from [NuGet Page](https://www.nuget.org/packages/) or use following command:
```
PM> Install-Package ISO3166-1-ZH
```

---
您可以透過 [NuGet](https://www.nuget.org/packages/) 下載此套件,或使用下列指令:
```
PM> Install-Package ISO3166-1-ZH
```


## Get the lastest data by WebCrawler (使用 WebCrawler 取得最新資料)
Use WebCrawler to retrieve this lastest country data from Wiki page, and generate iso3166.json and Country.cs.
1. [Download](https://github.com/Dynafloating/iso3166-1-zh) WebCrawler.
2. Run WebCrawler, an output path (folder) is needed to store generated files; if provided empty, it will store at same folder contains the application.
3. Two files will be generate: iso3166.json and Country.cs.

---
使用專案內的 WebCrawler 從 Wiki 頁面上取得最新的國家資料,將產出 iso3166.json 和 Country.cs 兩個檔案。
1. [下載](https://github.com/Dynafloating/iso3166-1-zh) WebCrawler。
2. 執行 WebCrawler,畫面將會詢問要存放產出檔案的資料夾路徑;如果沒有提供,將會產出在執行檔的相同資料夾。
3. 兩個檔案會被產出:iso3166.json 與 Country.cs。

0 comments on commit 8a00b53

Please sign in to comment.