You are not logged in.

#1 2011-07-30 05:03:24

awayand
Member
Registered: 2009-09-25
Posts: 398

Looking for a client to access arch bbs

I find reading the arch forums on bbs.archlinux.org using firefox cumbersome and slow. Is there a command line client out there, i.e. ncurses-based, which will allow me to browse the bbs more quickly and efficiently?

Offline

#2 2011-07-30 06:11:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Looking for a client to access arch bbs

You could use surfraw and a text browser like w3m. You would have to write an elvis for the bbs though...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-07-30 08:06:36

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Looking for a client to access arch bbs

Is it just this forum that bothers you, or do you also find other similar websites cumbersome and slow in firefox?

Offline

#4 2011-07-30 08:13:57

awayand
Member
Registered: 2009-09-25
Posts: 398

Re: Looking for a client to access arch bbs

just this forum. I realize firefox is a little slow but I rely on it because of plugins I can't live without (most notably pentadactyl).

Offline

#5 2011-07-30 11:41:36

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: Looking for a client to access arch bbs

If the server is slow a faster client won't help.

Offline

#6 2011-07-30 12:05:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Looking for a client to access arch bbs

The forum is sometimes slow, sometimes not responding at all (can't load pages), but usually is fast and fun to use :-)
I access this forum a lot using firefox with pentadactyl and I can't say it's cumbersome.

Offline

#7 2011-08-01 14:33:16

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Looking for a client to access arch bbs

Below is a script I run hourly with cron.

#!/bin/bash

export LC_COLLATE=C

script=${0##*/}
af=$HOME/doc/af               ## to be read
afmaster=$HOME/doc/aflist     ## have been read
afexclude=$HOME/doc/afexclude ## words to exclude

_usage() { cat << EOF
usage: $script

This script will download the most recent archlinux.org forum posts.
Forum posts means the post title along with its URL. It has the ability
to track which posts the user has viewed and store the unread forum
posts in a file.

EOF
}

(( $# != 0 )) && { _usage && exit 1 ;}

## If $af is open; exit
ps a | grep -q "[0-9] vim -c sort /^https/ + $af" && exit 1

## Read $afmaster into an array
## Append new posts to the master list array, leaving unseen posts marked with a '>'
## Remove any duplicate posts from master list
set -f; O=$IFS IFS=$'\n'
aflist=( $(< "$afmaster") )
aflist+=( $(curl -Ls "https://bbs.archlinux.org/search.php?action=show_24h" | \
    awk -F'["=<]' '/viewtopic.php\?id=/ && !/stickytext/ {printf "%06d%s\n",$5,$6}') )
aflist=( $(printf "%s\n" "${aflist[@]}" | sort | uniq -w 6) )

## Read $af into an array. Format unseen posts. Exclude posts which aren't of interest.
## Recode html and unicode to ASCII.
af_array=( $(< "$af") )
af_array+=( $(printf "%s\n" "${aflist[@]}" | \
    awk -F'>' '!/^[0-9]*#/ {gsub(/^0*/, "");print "https://bbs.archlinux.org/viewtopic.php?id=" $1,$2}' | \
    grep -ivEf "$afexclude" | \
    recode HTML) )
IFS=$O; set +f

## Mark all posts as read and write to master file
printf "%s\n" "${aflist[@]}" | sed -e 's/^\([0-999999]*\)>/\1#/g' > "$afmaster"

## Print unseen forum posts to $af file.
printf "%s\n" "${af_array[@]}"  > "$af"

## OPTIONAL
## Add mail headers so file is viewable in mutt.
mailfilenew=$HOME/.mail/ml-rss/arch/new/1271109605.5731_0.donkey
mailfilecur=${mailfilenew/new/cur}:2,S
header=$(echo -e "Date: $(date -R)\nSubject: ArchLinux Forums\nTo: User\nFrom: User\n\n---")

printf "%s\n" "$header" "${af_array[@]}" > "$mailfilecur"

## If there are new forum posts, set mail file as unread
grep -q bbs <<< "${af_array[@]}" && mv "$mailfilecur" "$mailfilenew"

## The key binding in mutt
#macro generic,index,pager   E "<shell-escape>vim '-c sort /\^https/' + $HOME/doc/af<enter>" "unread archlinux forum post titles"

Offline

#8 2011-08-01 14:38:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Looking for a client to access arch bbs

You can also subscribe to the rss feeds. While you can read them in the browser with e.g. Google Reader, many other clients exist, even console ones, like newsbeuter.
You may still need to fire up a browser to post though.

Offline

#9 2011-08-01 15:45:49

Awebb
Member
Registered: 2010-05-06
Posts: 6,662

Re: Looking for a client to access arch bbs

jasonwryan wrote:

elvis

Are these things called elvis, or is it just a personal expression?

Offline

#10 2011-08-01 15:57:37

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Looking for a client to access arch bbs

Offline

Board footer

Powered by FluxBB