Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are starred entries saved anywhere? #4210

Closed
bladerunnerwalrus opened this issue Feb 5, 2024 · 3 comments
Closed

Are starred entries saved anywhere? #4210

bladerunnerwalrus opened this issue Feb 5, 2024 · 3 comments

Comments

@bladerunnerwalrus
Copy link

I had to reset my mac, but kept a backup. I want to recover starred posts, but cannot find their location. Is there a way to recover? Everything was local.

@brentsimmons
Copy link
Collaborator

You’ll have to go into ~/Library/Containers and find NetNewsWire’s container, then go to Data/Library/Application Support/NetNewsWire/Accounts/

Each account should have a DB.sqlite3 file. You can open it in Terminal using sqlite3 on the command line.

In sqlite3, you can then get the data for your articles with this command:

select * from articles where articleID in (select articleID from statuses where starred=1);

It won’t be pretty, but you should be able to copy and paste from Terminal into a text editor and then do something with the data.

Alternately, you could just grab feed URLs, titles, and links, something like this:

select feedID, uniqueID, title, url, externalURL from articles where articleID in (select articleID from statuses where starred=1);

I hope this helps! I realize this isn’t at all convenient or easy. But the good news is that the data should all be there in the database.

@brentsimmons
Copy link
Collaborator

brentsimmons commented Feb 9, 2024

You might see two or more folders named NetNewsWire in the Containers folder. This is a confusing thing macOS does. Only one of those folders is for the app. Just one will have a folder at Data/Library/Application Support/NetNewsWire/Accounts/

@bladerunnerwalrus
Copy link
Author

You’ll have to go into ~/Library/Containers and find NetNewsWire’s container, then go to Data/Library/Application Support/NetNewsWire/Accounts/

Each account should have a DB.sqlite3 file. You can open it in Terminal using sqlite3 on the command line.

In sqlite3, you can then get the data for your articles with this command:

select * from articles where articleID in (select articleID from statuses where starred=1);

It won’t be pretty, but you should be able to copy and paste from Terminal into a text editor and then do something with the data.

Alternately, you could just grab feed URLs, titles, and links, something like this:

select feedID, uniqueID, title, url, externalURL from articles where articleID in (select articleID from statuses where starred=1);

I hope this helps! I realize this isn’t at all convenient or easy. But the good news is that the data should all be there in the database.

Thank you! Found location easy and the SQL code worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants