-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
RSS / XML export #7
Comments
That's a great idea!
So should Also, how should the RSS feed be structured, one item for each domain? |
You just need to place the file in a public folder. Every well-formatted RSS file can be subscribed with a client via the URL. Here's a simple example from one of my sites: https://coffee.electerious.com/feed.xml Generating the file should be enough.
Not sure what's the best way. Maybe one news item for each domain per day? |
For this I need to expand Right now it uses the Here's how the feed currently looks (on the feature/rss-feed branch): <?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Ackee Report</title>
<link>https://ackee.example.com</link>
<description>Here is your report for example.com and example2.com</description>
<lastBuildDate>Thu, 19 Nov 2020 17:57:53 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>ackee-report</generator>
<language>en</language>
<item>
<title><![CDATA[example.com]]></title>
<link>https://ackee.example.com</link>
<guid>https://ackee.example.com</guid>
<pubDate>Thu, 19 Nov 2020 17:57:53 GMT</pubDate>
<description><![CDATA[<p><b>Average views per day</b></p><p>x</p><p><b>Average duration</b></p><p>x s</p><p><b>Views this month</b></p><p>x</p><p><b>Top Pages</b></p><p>https://example.com - x times</p><p>https://example.com/path - x times</p><p><b>Top Referrers</b></p><p>https://example.com - x times</p><p>https://example2.com - x times</p><p>https://example3.com - x times</p><p><b>Top Languages</b></p><p>English - x times</p><p>German - x times</p>]]></description>
</item>
<item>
<title><![CDATA[example2.com]]></title>
<link>https://ackee.example.com</link>
<guid>https://ackee.example.com</guid>
<pubDate>Thu, 19 Nov 2020 17:57:53 GMT</pubDate>
<description><![CDATA[<p><b>Average views per day</b></p><p>x</p><p><b>Average duration</b></p><p>x s</p><p><b>Views this month</b></p><p>x</p><p><b>Top Pages</b></p><p>https://example.com - x times</p><p>https://example.com/path - x times</p><p><b>Top Referrers</b></p><p>https://example.com - x times</p><p>https://example2.com - x times</p><p>https://example3.com - x times</p><p><b>Top Languages</b></p><p>English - x times</p><p>German - x times</p>]]></description>
</item>
</channel>
</rss> |
It's just the name of the query. You can query multiple fields at once in GraphQL and give the whole thing a name. Those names are optional and the Ackee docs only contain a few example queries. E.g. You could also combine |
Oh okay, that makes sense. I am still new to GraphQL 😄 |
This feature is now a part of ackee-report rss -d example.com -o /path/to/public/folder/feed.xml -r day Note: The |
Great! Just out of curiosity, what reader are you using for RSS feeds? |
It's Feedly. Two more ideas:
|
Yes, this is next on my list of improvements.
I think this would be great to include in the reports. Maybe at the top of the email report/as the description in the feed. I will have to take a closer look at how this can be done with the API. |
Is your feature request related to a problem? Please describe.
I just thought that it would be cool to get a daily Ackee report in my RSS reader.
Describe the solution you'd like
ackee-report rss
orackee-report xml
command that generates a RSS feed you can subscribe to. You just need to place the file into an accessible folder (probably protected) and subscribe to it.The text was updated successfully, but these errors were encountered: