Skip to content

Scrapy Item Exporters which allows export into gzip compressed feed

License

Notifications You must be signed in to change notification settings

divtiply/scrapy-gzip-exporters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scrapy-gzip-exporters

Scrapy Item Exporters which allows export into gzip compressed feed. Supported formats: CSV (csv.gz), XML (xml.gz), JSON (json.gz), and JSON lines (jsonl.gz, jsonlines.gz, jl.gz).

This package also adds jsonl output format alias for JSON lines feed.

Setup

Add the following line to your project settings.py:

from scrapy_gzip_exporters import FEED_EXPORTERS

Set desired output format:

FEED_FORMAT = 'csv.gz'

or specify it with --output-format (-t) commandline tool option:

scrapy crawl myspider -o outfile.csv.gz -t csv.gz

Tip

To get CSV encoded in UTF-8 variant understood by Microsoft Excel, set

FEED_EXPORT_ENCODING = 'utf-8-sig'

About

Scrapy Item Exporters which allows export into gzip compressed feed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages