View Single Post
Old 09-17-2007, 06:11 PM   #130
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
Quote:
Originally Posted by flamaest View Post
Hadrien,

Can you help me make an RSS feed for this website?

http://www.keelynet.com/

I tried making an RSS feed from feedwhip and the output looks perfect, but feedbooks.com cannot understand this RSS feed for some reason.

Maybe you have an RSS for www.keelynet.com already on your list of RSS feeds..?

Thanks again,
Fabian.
PM me the feed that you created, I'll take at look at it.

Quote:
Originally Posted by zdevil
Great. Now I wget my own XML file. So how should I get the converted PDF feeds out of it? Thanks again.
Hmmm you need to use some shell scripting with both grep and sed for this. I'll see if I can do this script myself and post it back here.

Edit: Here's the .sh file (always included a zip file with the .sh). It should work for all UMS devices (iLiad, Cybook, Hanlin etc..) and could be easily edited to support the Sony PRS-500 with libprs500.
Code:
#!/bin/sh
wget "http://www.feedbooks.com/newsstand/subscription?user=username&password=MD5" -O subscription.xml
declare -a names
i=0
for n in `grep -E "<title>.*</title>" < subscription.xml | sed -e 's/<\/*title>//g' | sed 's/^[ ]*//g' | sed -e 's/[^a-z]/_/ig'`
do

names[$i]=$n
let "i=$i+1"

done
i=0
for url in `grep -E "<url>.*</url>" < subscription.xml | sed -e 's/<\/*url>//g'` 
do 
wget $url -O "${names[$i]}.pdf"
let "i=$i+1"
done
Attached Files
File Type: zip feedbooks.zip (379 Bytes, 253 views)

Last edited by Hadrien; 09-17-2007 at 06:53 PM.
Hadrien is offline   Reply With Quote