# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 11
# self = https://watcher.sour.is/conv/3olv57a
Been curious to see if can filter out my access.log file and output a list of my twtxt followers just in case I've missed someone ... I came up with this awk -F '\"' '/twtxt/ {print $(NF-1)}' /var/log/user.log | grep -v 'twtxt\.net' | sort -u | awk '{print $(NF-1) $NF}' | awk '/^\(/' spaghetti monster of a command and I'm wondering if there's a more elegant way for achieving the same thing.
I remember having seen one somewhere but can't remember where.
I remember having seen one somewhere but can't remember where.
We maintain a useragent tool for this 👌
We maintain a useragent tool for this 👌
@prologic yeah I've played with it for a bit and read through the code hoping I could steal some of your regex. I'm trying to up my awk(1p) game but failing miserably. 😆
@prologic yeah I've played with it for a bit and read through the code hoping I could steal some of your regex. I'm trying to up my awk(1p) game but failing miserably. 😆
@aelaraji Steal anything you want 🤣 f you manage to write a shell script version of the same tool I'd be interested in publishing it as an alternative tool 👌
@aelaraji Steal anything you want 🤣 f you manage to write a shell script version of the same tool I'd be interested in publishing it as an alternative tool 👌
@prologic hmm, it sounds like homework! 🤔 I'm IN!! 😂
@prologic hmm, it sounds like homework! 🤔 I'm IN!! 😂