Skip to content

Instantly share code, notes, and snippets.

@why0918
Forked from wilbeibi/reeder_starred_to_csv
Created November 2, 2017 21:48
Show Gist options
  • Save why0918/5e3cbcb7cc5a95ad3a9cac8a51e34784 to your computer and use it in GitHub Desktop.
Save why0918/5e3cbcb7cc5a95ad3a9cac8a51e34784 to your computer and use it in GitHub Desktop.
Export Reeder starred iterms to csv
#!/usr/bin/env python
import getpass
import sqlite3
import csv
RKIT_PATH = "/Users/" + getpass.getuser() + "/Library/Containers/com.reederapp.rkit2.mac/Data/Library/Application Support/Reeder/rkit/"
conn = sqlite3.connect(RKIT_PATH + "rkit.db")
DATA_DB_PATH = RKIT_PATH + "rkit-data.db"
cursor = conn.cursor()
cursor.execute("ATTACH DATABASE '%s' AS data" % DATA_DB_PATH)
cursor.execute('''
SELECT data.rkitemdata.title, data.rkitemdata.link, data.rkitemdata.content FROM data.rkitemdata
INNER JOIN rkitem
WHERE data.rkitemdata.id == rkitem.id and rkitem.starred == 1
''')
data = cursor.fetchall()
with open("starred_items.csv", "w") as f:
writer = csv.writer(f)
for row in data:
writer.writerow(row)
@yinan-c
Copy link

yinan-c commented Sep 20, 2023

Thanks! I found this discussion and successfully exported my starred items in Reeder 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment