Quote:
Originally Posted by flamaest
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