fedmon/README.org

39 lines
1.4 KiB
Org Mode
Raw Permalink Normal View History

2022-01-21 21:00:04 +00:00
Inspired by [[https://twitter.com/rachel_shorey/status/1482097585447972866][this tweet.]]
2022-01-22 02:17:15 +00:00
Monitor [[https://analytics.usa.gov][analytics.usa.gov]] for federal websites that currently have a larger
number of unique visitors than the USPS package tracking system does.
2022-01-22 02:33:06 +00:00
Display your results in the terminal every 10 minutes:
2022-01-22 13:14:23 +00:00
[[[
]]]
2022-01-22 02:33:06 +00:00
- As JSON:
2022-01-22 02:34:09 +00:00
#+begin_src bash
user@host:~$fedmon --format json
{
"sites": [
{
"datetime": "2022-01-21T21:30:38.308841",
"active_visitors": 16748,
"page_title": "COVID Home Tests | USPS",
"page": "special.usps.com/testkits"
}
]
}
#+end_src
2022-01-22 02:33:06 +00:00
- As CSV
#+begin_src bash
user@host:~$fedmon --format csv
datetime,active_visitors,page_title,page
2022-01-21T21:30:32.720662,16748,COVID Home Tests | USPS,special.usps.com/testkits
#+end_src
- Or as any format supported by [[https://github.com/astanin/python-tabulate#table-format][tabulate]]:
2022-01-22 02:34:09 +00:00
#+begin_src bash
user@host:~$fedmon --format orgtbl
| datetime | active_visitors | page_title | page |
|----------------------------+-------------------+-------------------------+---------------------------|
| 2022-01-21T21:12:04.025628 | 17714 | COVID Home Tests | USPS | special.usps.com/testkits |
#+end_src