Table to CSV EN
igorlogius · Firefox
Export HTML tables from any web page as CSV (comma separated values)
截图
简介
Export HTML tables from any web page as CSV (comma separated values). The result can be copied or downloaded and opened in common spreadsheet programs such as Microsoft Excel, LibreOffice Calc or Gnumeric.
Quick start
- Open a page that contains a table.
- Click the toolbar button. Every exportable element on the page gets a red dotted border. Click the button again to remove the highlighting.
- Right click inside a highlighted area to open the context menu.
- Open the submenu "Table to CSV" and choose "Text content" or "HTML content".
- A new tab opens with the CSV. Click "Copy" to copy it to the clipboard or "Download" to save it as export.csv.
What can be exported
- Regular HTML tables (the table element).
- Tables built from div elements with the CSS display values table, table-row and table-cell.
When you right click, the table that contains the clicked spot is exported. If tables are nested, the innermost one under the pointer is exported, and tables inside it are not repeated in the outer one. To export the outer table, right click on a part of it that is outside the inner table. You do not have to highlight the tables first. The highlighting is only a help to find them.
The context menu entries are available on the page itself, on links, on images and in editable fields, as long as the clicked spot is inside a table.
Text content or HTML content
- Text content: exports what you see in the cells, without markup. Repeated spaces and tabs are collapsed into one space and the text is trimmed. Line breaks inside a cell are kept.
- HTML content: exports the HTML markup inside each cell, for example links and formatting tags, exactly as it is in the page.
In both cases the result is a normal CSV file.
The export tab
- Shows the CSV in an editable text area, so you can adjust it before using it.
- Shows whether it is a Text or HTML export and how many rows were exported.
- "Copy" puts the text on the clipboard. "Download" saves a file named export.csv.
CSV format
- Fields are separated by commas and every field is wrapped in double quotes. Double quotes inside a field are doubled.
- Rows are separated by CRLF line breaks.
- Cells that span several columns (colspan) are followed by empty cells, so the columns stay aligned.
- Cells that span several rows (rowspan) leave empty cells in the rows below, so the columns stay aligned.
- Rows without cells are skipped.
- The file is UTF-8 without a byte order mark. If Excel shows special characters incorrectly when you open the file by double click, use "Data - From Text/CSV" and choose UTF-8 as the file origin.
Toolbar badge and troubleshooting
- A green check mark on the toolbar button means the add-on is ready on this page.
- A red exclamation mark means the add-on cannot access this page. Hover over the button to see the message. Firefox does not allow add-ons on pages such as about: pages, the add-on store, the built-in PDF viewer and local files.
- If the export tab says "No exportable target found", the spot you right clicked on is not inside a table. Click the toolbar button to highlight the tables on the page and right click inside one of them.
- If the export tab says it could not communicate with the page, the page is restricted or was closed in the meantime.
Permissions and privacy
- menus: adds the "Table to CSV" entries to the context menu.
- activeTab: lets the add-on read the table on the page you are currently using, only after you click the toolbar button or a menu entry.
The add-on does not collect or transmit any data. The tables are processed locally in your browser.
Table to CSV 是做什么的
Table to CSV 是一款面向 Firefox 的实用工具类扩展,主要用来解决浏览器里某类具体的小问题。官方对它的介绍是:Export HTML tables from any web page as CSV (comma separated values)在Firefox 附加组件商店(AMO)上,它当前版本 1.4.32,评分 4.11(19 人评价),约 1,016 名用户。
适合什么人用
从功能定位看,Table to CSV 更适合想补上浏览器原生缺失功能的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 Table to CSV
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Table to CSV 是免费的吗?
Table to CSV 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Table to CSV 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Table to CSV 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Table to CSV?
在扩展管理页找到 Table to CSV,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 2
activeTabmenus
