Monday, March 9, 2020

Count the number of downloads of publications

I make my publications public. I was curious about the download count of the papers so I wrote a bash script. My site is using Nginx as the web server software thus I can process the access logs which contain the HTTP requests. So as of writing this post and from Feb 23, 2020, the following are the download counts.

     21 /publications/pabico-pitj2008-perceived.pdf
     14 /publications/tolentino-iwcfu2012-disaster.pdf
     13 /publications/raquel-iwcfu2012-parallel.pdf
     12 /publications/hermocilla-ncite2016-osv-mpi.pdf
     11 /publications/escamos-acrs2015-comparison.pdf
     10 /publications/aluning-ncite2010-terra.pdf
      9 /publications/silapan-iwcfu2012-using.pdf
      8 /publications/lara-ncite2017-exploring.pdf
      8 /publications/duldulao-ncite2011-an.pdf
      7 /publications/lactuan-pitj2011-a.pdf
      7 /publications/hermocilla-pitj2009-ics-os.pdf
      7 /publications/cabigting-iwcfu2012-eucalyptus.pdf
      7 /publications/borja-iwcfu2012-squigis.pdf
      7 /publications/aguila-ncite2015-sustainable.pdf
      5 /publications/lactuan-ncite2011-a.pdf
      5 /publications/hermocilla-ncite2014-p2c.pdf
      5 /publications/carpio-pcsc2017-skylab.pdf
      4 /publications/hermocilla-model2009-a.pdf
      4 /publications/escamos-acrs2016-bertud.pdf
      3 /publications/manzano-sfrc2013-squidler.pdf
      3 /publications/macasaet-iwcfu2012-a.pdf
      3 /publications/eclarin-ncite2014-dgrav.pdf
      3 /publications/bulalacao-sfrc2015-is.pdf
      3 /publications/aguinaldo-iwcfu2012-automatic.pdf


The one-liner below does the trick.
Loading or something, this is just text to display while the browser pulls the gist....