【问题标题】:I want to automate downloading CSV files from a website我想自动从网站下载 CSV 文件
【发布时间】:2020-11-23 07:12:14
【问题描述】:

这是网站的链接。

https://data.gov.in/catalog/district-wise-and-month-wise-queries-farmers-kisan-call-centre-kcc-during-2020?filters%5Bfield_catalog_reference%5D=6752810&format=json&offset=0&limit=6&sort%5Bcreated%5D=desc

每页有多个文件,每个文件都有一个“导出 CSV”按钮。它还要求您在每次下载文件之前填写表格。我更喜欢使用 node js,因为我在 Js 方面有一些经验,但我没有在 Nodejs 中做过任何项目。我可以使用什么方法?

编辑:我也很感激任何指向类似行的文章的链接。

【问题讨论】:

    标签: javascript node.js automation scripting export-to-csv


    【解决方案1】:

    您可以使用 Puppeteer https://github.com/puppeteer/puppeteer。 在此处查看一个示例:https://levelup.gitconnected.com/building-a-scheduled-news-crawler-with-puppeteer-d02a7919bdbe 在 Google 上搜索“网页抓取”、“使用 Puppeteer 进行网页抓取”

    【讨论】:

      猜你喜欢
      • 2016-07-02
      • 2017-07-14
      • 1970-01-01
      • 1970-01-01
      • 2022-01-23
      • 2011-06-23
      • 2021-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多