Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[cercasi consiglio] RSS with fluxbox
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
tizio
Guru
Guru


Joined: 22 Mar 2005
Posts: 365

PostPosted: Tue Jun 20, 2006 3:01 pm    Post subject: [cercasi consiglio] RSS with fluxbox Reply with quote

Salve a tutti!
cercavo un buon visualizzatore di feed Rss... magari che si integri bene con fluxbox...
non ho mai affrontato l'argomento e mi chiedevo se aveste qualche programma da suggerire...
conosco solo straw ma la lista di dipendenze che richiede mi disturba un pò :?

mi basterebbe anche un semplice programma in cui immettere gli url dei feed che mi interessano... per poi magari integrarlo con conky...
(ho visto su un mac l'integrazione dei feed di repubblica con lo screensaver... magari si può anche fare qualcosa del genere?)

link a screenshots di esempio sarebbero ben accetti :D

grazie a tutti!!
Back to top
View user's profile Send private message
tizio
Guru
Guru


Joined: 22 Mar 2005
Posts: 365

PostPosted: Tue Jun 20, 2006 4:29 pm    Post subject: Reply with quote

vi posto lo scriptino che ho trovato adattandolo per l'rss di repubblica...
postando solo l'output si può facilmente integrare con conky

Code:

#RSS Setup
URI=http://www.repubblica.it/rss/homepage/rss2.0.xml    #URI of RSS Feed
LINES=4                                                 #Number of headlines

#Environment Setup
EXEC="/usr/bin/curl -s"                         #Path to curl

#Work Start
$EXEC $URI | grep title |\
sed -e 's/[ \t]*//' |\
sed -e "s/<.*\[ //g" |\
sed -e "s/\].*>//g" |\
head -n $(($LINES + 2)) |\
tail -n $(($LINES))
Back to top
View user's profile Send private message
MaTz
Apprentice
Apprentice


Joined: 28 Aug 2005
Posts: 166
Location: Genova (IT)

PostPosted: Sat Jun 24, 2006 7:42 am    Post subject: Reply with quote

ho fatto due modifiche stupide relative al passaggio di parametri allo script e ho aggiunto un altro sed in pipe per pulire l'output dai TAG <> (problema che noti nel momento in cui usi un rss di ansa.it)

Code:

#RSS Setup
if [ $# -lt 1 ]; then
        echo "Passare l'url come parametro"
        exit
fi

URI=$1   #URI of RSS Feed
LINES=10 #N Line

if [ $# -eq 2 ]; then
        LINES=$2
fi


#Environment Setup
EXEC="/usr/bin/curl -s"                         #Path to curl

#Work Start
$EXEC $URI | grep title |\
sed -e 's/[ \t]*//' |\
sed -e "s/<.*\[ //g" |\
sed -e "s/\].*>//g" |\
sed -e 's/<[^>]*>//g'|\
head -n $(($LINES + 2)) |\
tail -n $(($LINES))


lo script in questione mi da un errore strano in conky (cosa che non avviene nel terminale) ovvero appende ad ogni riga una ']'
ciao
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum