Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 Scrapy,我从网页中获取数据并尝试将它们存储在 csv 文件中。
实际上我有2560几行数据要写入 csv 文件。
2560
当我尝试在 OpenOffice 中打开文件时,出现以下错误:
The maximum number of rows has been exceeded. Excess rows were not imported.
我可以打开文件,但我只得到600行,其余行被删除。
600
如何让 Scrapy 将所有 2560 行下载到一个 csv 文件中?
看来您的问题只是 OpenOffice(或 LibreOffice)拒绝加载如此长的 .csv。数据本身应该没问题 - 剩余的行根本没有导入。
vi如果您在纯文本编辑器(类似或)中打开文件nano,您应该会看到您的所有内容都在那里。
vi
nano
或者,您可以尝试以下方法:
$ wc -l file.csv
结果应该是 2560(表示文件中有 2560 行)。