Hey there, those of you with coding (ha ha) in your bones....
So obviously you'd have to be cool with Lua, and change the “base_url” variable to point to your own space, but here's how easy it is to have a command line utility that shows you post hits:
(ooops.. I just realized you need to pilfer the “dkjson” module from wherever the bleep I originally got that from...)
(and OF COURSE need to have some cURL in your $PATH...)
(isn't software “fun”)
(and, by the way, there's a good chance this won't work for you no matter how hard you try until after some 3 BILLION trips to stackoverflow (if not lesser places...))
#! /usr/bin/env lua local json = require 'dkjson' local verbose = os.getenv('VERBOSE') local base_url = 'https://inquiry.writeas.com' local article_ids = {} local function doit(url) if verbose then print('url(' .. url .. ')') end local popen = io.popen('curl -k -s -L -o- ' .. url) local next_page = nil for line in popen:lines() do local next = string.match(line, '^lt;link rel="next" href="(.-)"^gt;') if next then next_page = next end local article_id = string.match(line, '^lt;article id="post%-(.-)"') if article_id then table.insert(article_ids, article_id) end end popen:close() if not arg[1] and next_page then if verbose then print('next_page(' .. next_page .. ')') end doit(base_url .. next_page) end end doit(base_url) local data = {} for i,article_id in ipairs(article_ids) do if verbose then print('article_id(' .. article_id .. ')') end local popen = io.popen('curl -k -s -L -o- https://write.as/api/posts/' .. article_id) local encoded_json = popen:read('*a') popen:close() local decoded_json = json.decode(encoded_json) table.insert(data, {decoded_json.data.views, decoded_json.data.title, decoded_json.data.created, decoded_json.data.updated, article_id}) end table.sort(data, function(a,b) if b[1] ^lt; a[1] then return true end return false end) for i,v in ipairs(data) do print(table.concat(v, '|')) end