CSV 下载 link API 稳定(或官方)吗?
Is the CSV download link API stable (or official)?
这是马厩的一部分吗api?我可以在应用程序中使用它来使用数据吗?
https://docs.google.com/spreadsheets/d/<KEY>/export?gid=<WORKBOOK_ID>&format=csv
AFAIK https://docs.google.com/spreadsheets/d/<KEY>/export?gid=<WORKBOOK_ID>&format=csv
不是当前 API 的一部分。
Google 表格 API 文档 link 是
我认为当时可行的解决方案不再可靠。有时他们这样做,有时他们不这样做。
#!/bin/bash
u='1VaW8fRFJeJ5Wg6-prF8l3xCwbjkx-q_Mqyt8XfjIn6Q'
echo "pubhtml"
curl -s "https://docs.google.com/spreadsheets/d/$u/pubhtml" | grep -c 'exists to test'
echo "export1"
curl -s "https://docs.google.com/spreadsheets/d/$u/export?format=csv&id=$u" | grep -c 'exists to test'
echo "export2"
curl -s "https://docs.google.com/spreadsheets/d/$u/export?format=csv&gid=$u" | grep -c 'exists to test'
echo "export3"
curl -s "https://docs.google.com/spreadsheets/d/$u/export?format=csv&gid=0" | grep -c 'exists to test'
echo "export4"
curl -s "https://docs.google.com/spreadsheet/tq?key=$u&gid=1&tq=select%20A,%20B&tqx=reqId:1;out:html;%20responseHandler:webQuery" | grep -c "exists to test"
echo "export5"
curl -s "https://docs.google.com/spreadsheet/tq?key=$u&id=1&tq=select%20A,%20B&tqx=reqId:1;out:html;%20responseHandler:webQuery" | grep -c "exists to test"
exit 0
(我的测试电子表格包含该字符串。)只有第一个请求 (pubhtml) 仍然有效。也就是说,我的 CL 输出是 1 0 0 0 0 0
。因此,除了使用 .net 或 java,当前的工作选择似乎是 pubhtml 并重新解析其 HTML?
耻辱---这是一种非常有用的简单方法来提取数据。
/iaw
这是马厩的一部分吗api?我可以在应用程序中使用它来使用数据吗?
https://docs.google.com/spreadsheets/d/<KEY>/export?gid=<WORKBOOK_ID>&format=csv
AFAIK https://docs.google.com/spreadsheets/d/<KEY>/export?gid=<WORKBOOK_ID>&format=csv
不是当前 API 的一部分。
Google 表格 API 文档 link 是
我认为当时可行的解决方案不再可靠。有时他们这样做,有时他们不这样做。
#!/bin/bash
u='1VaW8fRFJeJ5Wg6-prF8l3xCwbjkx-q_Mqyt8XfjIn6Q'
echo "pubhtml"
curl -s "https://docs.google.com/spreadsheets/d/$u/pubhtml" | grep -c 'exists to test'
echo "export1"
curl -s "https://docs.google.com/spreadsheets/d/$u/export?format=csv&id=$u" | grep -c 'exists to test'
echo "export2"
curl -s "https://docs.google.com/spreadsheets/d/$u/export?format=csv&gid=$u" | grep -c 'exists to test'
echo "export3"
curl -s "https://docs.google.com/spreadsheets/d/$u/export?format=csv&gid=0" | grep -c 'exists to test'
echo "export4"
curl -s "https://docs.google.com/spreadsheet/tq?key=$u&gid=1&tq=select%20A,%20B&tqx=reqId:1;out:html;%20responseHandler:webQuery" | grep -c "exists to test"
echo "export5"
curl -s "https://docs.google.com/spreadsheet/tq?key=$u&id=1&tq=select%20A,%20B&tqx=reqId:1;out:html;%20responseHandler:webQuery" | grep -c "exists to test"
exit 0
(我的测试电子表格包含该字符串。)只有第一个请求 (pubhtml) 仍然有效。也就是说,我的 CL 输出是 1 0 0 0 0 0
。因此,除了使用 .net 或 java,当前的工作选择似乎是 pubhtml 并重新解析其 HTML?
耻辱---这是一种非常有用的简单方法来提取数据。
/iaw