I could probably post this in Meta, but if it's ever possible some here should know how:
Do you guys know if it's possible to watch a member posts the same way we can watch threads? How do you check if friedcat posted something? It's a pain to do it "by hand".
you use this thing called "bookmarks" in your browser
That does not tell me whether there is a new post or not.
?? just bookmark
this Call me lazy, but I don't want to open a page if there is nothing to see. What I'd like to have is something as the watchlist for the threads, where you know whether there is something new without actually opening each single page.
I've wrote this small script. If you're under linux, and KDE, you can use it as it is. If you're under gnome, you must change the notification to whatever you want.
Every time friedcat write a new post, it will notify you. You don't even need to have your browser open.
#!/bin/bash
UPDATE_TIME=3600 # Time between checks in seconds
touch old
while :
do
# get last version (just a part of the html, where first post is)
wget -q -O - "https://bitcointalk.org/index.php?action=profile;u=49840;sa=showPosts" | fgrep -A 200 -m 1 "bodyarea" | fgrep -A 15 -m 1 "titlebg2" > new
# different from reference version?
diff new old > /dev/null
if [ "$?" == "1" ]
then
# different! Let's update the reference one:
mv new old
# There has been a new post! Trigger whatever you want here, for KDE it can be:
kdialog --passivepopup 'Friedcat has posted something! Check it out :)' 3600
fi
sleep ${UPDATE_TIME}
done
I cannot believe I wrote this. Maybe I should just step back and relax a bit...
well, I must admit that is pretty cool, simple and effective script. much better than a bookmark indeed