HTML表格用于CSV用作列标题

时间:2016-04-01 05:59:37

标签: html csv

我有一张像这样的桌子

Org,1
Date,112
value A,y
value B,x
Org,2
Date,111
value B,x
Value C,y

但我需要一张像这样的表

Org,Date,Value A,Value B,Value C
1,112,y,x,,
2,111,x,,y  

如何为每个键创建带有列标题的csv,为每个值创建行项目?

以下是我想要排序的数据的摘录。

<table cellspacing="0" cellpadding="0" border="0"><tr><th>Organization</th><td>The Asahi Glass Scholarship Foundation</td>
<tr><th>Applicable scholarship year</th><td>2015-2016</td>
<tr><th>Application method</th><td>Apply through the school.</td>
<tr><th>Place of residence at the time of application</th><td>in Japan</td>
<tr><th>Academic level</th><td>Master&#039;s program, Doctoral program</td>
<tr><th>Nationality</th><td>Indonesia, Thailand, China, Korea</td>
<tr><th>Residency status</th><td>College Student</td>
<tr><th>Designated schools</th><td>28 designated universties. Consult the international student adviser.</td>
<tr><th>Combined award limitation</th><td>You cannot get another scholarship.</td>
<tr><th>Stipend (Yen)</th><td>100,000 yen for a month</td>
<tr><th>Duration (years)</th><td>Minimum years required for graduation or completion (about 2 years)</td>
<tr><th>Number of recipients</th><td>12</td>
<tr><th>Number of recipients in previous year</th><td>14/49</td>
<tr><th>Application period</th><td>February to Early April</td>
<tr><th>Application deadline</th><td>April</td>
</table><table cellspacing="0" cellpadding="0" border="0"><tr><th>Organization</th><td>Association for Asian Educational Exchange (AEE)</td>
<tr><th>Applicable scholarship year</th><td>2015-2016</td>
<tr><th>Application method</th><td>Apply through the school.</td>
<tr><th>Place of residence at the time of application</th><td>in Japan</td>
<tr><th>Academic level</th><td>Master&#039;s program</td>
<tr><th>Nationality</th><td>China</td>
<tr><th>Residency status</th><td>College Student</td>
<tr><th>Designated schools</th><td>16 universities (68 schools) (Consult the international student adviser.)</td>
<tr><th>Age limitation</th><td>Less than 35 years old</td>
<tr><th>Combined award limitation</th><td>You cannot get another scholarship. </td>
<tr><th>Other application matters</th><td>You must study social science as the major in Japan.</td>
<tr><th>Stipend (Yen)</th><td>120,000 yen for a month</td>
<tr><th>Duration (years)</th><td>1 to 2 years</td>
<tr><th>Number of recipients</th><td>│ヒᆬ¥ᄍᄇ¥ミヘ (A few)</td>
<tr><th>Number of recipients in previous year</th><td>₩ワᆰ¥ᆴレ (Not yet determined)</td>
<tr><th>Application period</th><td>January to Early March</td>
<tr><th>Application deadline</th><td>March</td>
</table>

0 个答案:

没有答案