# html-table-to-array **Repository Path**: jscode/html-table-to-array ## Basic Information - **Project Name**: html-table-to-array - **Description**: 将html网页中的table表格组件,转换成二维数组。方便从网页中提取数据。 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-01-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # html-table-to-array 将html网页中的table表格组件,转换成二维数组。方便从网页中提取数据。 将![multisources](img/table.png)转换成 ``` T, T 11, 12 ``` 使用示例 ``` String html = IOUtils.toString(HtmlTableToArrayTest.class.getClassLoader().getResourceAsStream("a.html"), "utf-8"); // 从html中解析table组件 List>> tables = HtmlTableToArray.parse(html); for (List> table : tables) { System.out.println(table); } ```