mysociety / pombola

GNU Affero General Public License v3.0
65 stars 41 forks source link

Provide machine readable data on the number of comments per day #1673

Open TomSteinberg opened 9 years ago

TomSteinberg commented 9 years ago

This is to help with the task of collecting data on the numbers of transactions, without having to eyeball the sites manually.

Would be helpful if data could include daily totals going back to the point where the data started to be collected, to make graphing easier.

paullenz commented 9 years ago

Hold until we make decision about long term comment options

This might be doable via the disqus API - but for ZA at least unlikely to continue using

lizconlan commented 9 years ago

Discovered in the course of looking at #1676 that this is potentially a thing, although going back and getting the historic data is likely to be a faff.

The Disqus API includes https://disqus.com/api/docs/forums/listPosts/ which, if used with order=asc and since=[timestamp] (note that the order is important, otherwise since does the exact opposite of what you expect) will return the most recent comments, which we can then count.

For completeness, Facebook can also be persuaded to produce a list of comments but there's no obvious way to restrict it to a set date or time-based start point http://stackoverflow.com/questions/22732606/facebook-graph-api-event-id-commentssince-2014-02-01until-2014-02-10-date-fi