rogierlommers / miniflux-exporter

Small CLI which can be used to export all your miniflux RSS feeds into an OPML file and to export all starred/bookmarked entries
Apache License 2.0
13 stars 3 forks source link

Export entries #10

Closed calm3285 closed 6 months ago

calm3285 commented 6 months ago

It will be nice to export all the entries not only the starred

rogierlommers commented 6 months ago

What exactly is the usecase, @calm3285 ? There is already the feature to export to an opml file. Can you elaborate a bit why you would want this?

calm3285 commented 6 months ago

I fetch youtube videos links. Since i cant see them all, I just save the links. I use miniflux to archive the links aince youtube only get the last 15 videos. some feeda are in their hundreds entries now

rogierlommers commented 6 months ago

Ok, clear. I can add it if you want. My suggestion: I add a new flag: -output-all-articles. And I will rename the other one. So in total it will be like this:

-output-starred-articles ~/Downloads/starred-articles.xml
-output-all-articles ~/Downloads/all-articles.txt
-output-opml ~/Downloads/feeds.opml

@calm3285 , agree with this? The format of the starred and the all-articles flag is an rss file. Agree with this format?

calm3285 commented 6 months ago

Will this output ALL the articules or just the unread?

I dont mind the idea of archiving all the articles, but if its gonna output the unread, the flag should be other

I also think you should keep the flags short -output-stars -output-all -output-opml

rogierlommers commented 6 months ago

@calm3285 , can you try: https://github.com/rogierlommers/miniflux-exporter/releases/tag/9 I also updated the docs. My assumption is that you only want to export the unread articles, right? I added that flag now: -output-unread. Please let me know if this works for you.

calm3285 commented 6 months ago

skipping opml export (see -help for more info) skipping export of bookmarks/starred entries (see -help for more info) exported 8282 articles, 14 MB written to file phone.xml

it works but it exports more articles that i have Unread (6928)

rogierlommers commented 6 months ago

it works but it exports more articles that i have Unread (6928)

That's strange. I literally ask the miniflux instance for all entries that have status "unread". In my case it works fine. The filter I use when I "talk with the miniflux API":

        minifluxFilter = &client.Filter{
            Status: client.EntryStatusUnread,
        }

Here you see my results, the Miniflux web client reports 35 unreads and the output results also contains 35 unreads.

Screenshot 2024-03-19 at 14 11 41 Screenshot 2024-03-19 at 14 11 51

calm3285 commented 6 months ago

My bad, I have the "Hide entries in global unread list" option checked in some categories

thanks dude