search

Home  >  Q&A  >  body text

python - pyspider爬取了接近1G的数据,无法导出csv?

已经增加虚拟机内存至2g,依然无法导出。

大家讲道理大家讲道理2836 days ago674

reply all(4)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:33:22

    Generally, it is exported in files. If the data of one unit is about 1M, it will be divided into 1024 files.

    In addition, it is impractical to synthesize a 1G CSV, because a 1G CSV is almost impossible to open. If you really want to synthesize 1G, you can synthesize more than a thousand exported files into a CSV. File synthesis is easy to achieve in Python.

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:33:22

    Monthly CSV processing of 1G data is not reasonable. Try sqlite3.

    reply
    0
  • 阿神

    阿神2017-04-18 10:33:22

    8G is not enough. It is recommended to choose a database as a storage solution. A 1G CSV has no meaning.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:33:22

    Downloading is very fast using ftp intranet. I uploaded 8g two days ago. It feels like it downloaded in just a few minutes

    reply
    0
  • Cancelreply