Should I create pipeline to save files with scrapy?

后端 未结 3 1834
旧时难觅i
旧时难觅i 2020-12-13 08:12

I need to save a file (.pdf) but I\'m unsure how to do it. I need to save .pdfs and store them in such a way that they are organized in a directories much like they are stor

3条回答
  •  眼角桃花
    2020-12-13 08:37

    There is a FilesPipeline that you can use directly, assuming you already have the file url, the link shows how to use FilesPipeline:

    https://groups.google.com/forum/print/msg/scrapy-users/kzGHFjXywuY/O6PIhoT3thsJ

提交回复
热议问题