Pregunta

I have a simple scrapy project which is parsing a site and generating a JSON file locally (using the command line). I would like to enhance the project by having it export the JSON tile to an FTP site, having looked at the Scrapy Doc and various forums I understand this is done with FEED_EXPORT but I have no clue where to start.

Does anyone have an example or tutorial I could follow please?

¿Fue útil?

Solución

try this for example:

scrapy crawl spidername --set FEED_URI=ftp://user:pass@ftp.example.com/path/to/export.csv

You can also set the FEED_URI in the settings file:

FEED_URI="ftp://user:pass@ftp.example.com/path/to/export.csv"
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top