Skip to content

A simple script to export articles from Omnivore into a CSV format

Notifications You must be signed in to change notification settings

sofiafrocha/omnivore-export-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnivore Export to CSV

A simple script to export your articles from Omnivore into a CSV format.

Setup

Install dependencies, using Bun:

bun install

Rename the .env.example file to .env:

mv .env.example .env

And replace the XXXs on the .env file with your Omnivore API Key.

Usage

To get and export to CSV all your articles, run the following command:

bun run index.ts

Filter articles to export

You can pass a Omnivore search query to filter the articles that will be exported:

bun run index.ts --search-query "label:Cooking,Fitness"

Add a label to all exported articles

This is useful if you're going to import the articles to another service, and want to easily know which items came from this export:

bun run index.ts --add-tag "your_tag_name_here"

Save intermediate JSON files

If you want to get the data in JSON format too:

bun run index.ts --save-intermediate-files

Export less data

This is will only include the title, url, labels, creation date and description of the articles.
Saved in a format that can be imported to Raindrop:

bun run index.ts --full-data false

Using all options

You can use and combine all options at once:

bun run index.ts --save-intermediate-files --full-data false --add-tag "your_tag_name_here" --search-query "label:Cooking,Fitness"

About

A simple script to export articles from Omnivore into a CSV format

Topics

Resources

Stars

Watchers

Forks