![]() |
#31 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Oct 2006
Location: Germany
Device: Iliad, Sony 505
|
UPDATE
Greetings,
I just updated my previous post, and uploaded a new version of getfeed: 0.9e A nice weekend to all of you, Tommy |
![]() |
![]() |
![]() |
#32 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Oct 2006
Location: Germany
Device: Iliad, Sony 505
|
New features
Hi there,
for those who are interested, I added two new features to getfeed and I thought some one might find it useful.
Code:
getfeed V0.10 (c) by T.Berndt
This program comes with ABSOLUTELY NO WARRENTY.
usage: getfeed [...] [-o <outfile>] [-f] <feed> [<feed_1> ...]
-f <feed>[;<start>;<stop>;<filter>;<server>;<srcURL>;<toURLa>;<toURLb>]
: <feed> is a URL or a filenmae.
-d <directory: store the feeds (and images) in <directory>
-o <outfile> : saves output into <outfile>
-t <title> : Title of this news' edition
-r : Retrieve and append linked atricles. Default: no
-R <file> : Reads <file> instead of .getfeedrc
-e <charset> : Use <charset> for encoding. Default: UTF-8
-F <format> : Output format: html(obvious), tex(LaTeX) or rss Default: html
-S <style> : Reads <style> and adds its content as style-information.
-P <package> : Adds a \usepackage{<package>} into the LaTeX-file
-C <cmd> : Execute <cmd>
-m : format text in two columns
-a : Auto-name the output as news_YYYYMMDD.<format> Default: no
-v : Print debugging info to STDERR/<log>.
-s : Suppress all output. Default: no (i.e. not silent)
-D : Delta mode includes only new items since the last runt
-l <log> : Writes debugging information to <log>
Tommy Last edited by Tommy; 04-09-2009 at 10:26 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 375
Karma: 2200000
Join Date: Feb 2009
Location: Chennai
Device: .*
|
Hi Tommy,
Thanks for this wonderful utility. I am now able to get one html with all news from back home. I usually use mobipocket to read the news and now also use getfeed. One point i noticed: the urls in -f must be ; separated with a space after each entry. my perl is almost non-existent... Can i make a humble request? In case the feeds list(-f url;url ![]() This will help the html files to load on mobile/ereader devices more easily. Thanks again for this wonderful tool. hari |
![]() |
![]() |
![]() |
#34 | ||
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Oct 2006
Location: Germany
Device: Iliad, Sony 505
|
Hi Hari,
Quote:
![]() I agree, and I think this required blank is nonsense... It should be quite easy to fix this. Quote:
On the other hand, the html file that is created, has been intended primarily as input for tools such as html2epub or html2mobi, to get an output that's actually optimised for mobile reading. I consider it only an intermediate file format (or for reading on the (desktop) computer) Some ideas: Using the -C parameter you can automatically start a program which uses the outputfile to convert it to mobi. Personally, I don't use the html file on my Iliad, but a pdf that's been created by LaTeX. The relevant parameters are: Code:
### This is the LaTeX output -F tex -C pdflatex -interaction=nonstopmode >/dev/null -P ~/iliad.sty -o ~/src/perl/rss/myFeeds.tex Code:
\usepackage[ lmargin=0.25cm, rmargin=0.25cm, tmargin=0.25cm, bmargin=0.25cm, nohead, %paperheight=14.7cm, paperheight=16.5cm, paperwidth=12.2cm]{geometry} \usepackage{bookman} \usepackage{hyperref} \usepackage[utf-8]{inputenc} \pagestyle{empty} \newcommand{\mytitle}[2]{ \noindent\rule{\textwidth}{0.7pt}\\ \mbox{ }\\[3ex] \begin{center} {\Huge\bf #1}\\[3ex] \end{center} \mbox{}\\[2ex] \noindent\rule{\textwidth}{0.7pt}\\ \vfill \hfill{\Large \emph{#2}}\\ \noindent\rule{\textwidth}{0.7pt}\\ \newpage } \pagestyle{empty} \sloppy Best regards, Tommy |
||
![]() |
![]() |
![]() |
#35 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 375
Karma: 2200000
Join Date: Feb 2009
Location: Chennai
Device: .*
|
Quote:
I tried to use html2mobi from the mobiperl kit. This produced a neat mobi file with hyperlinks etc., However.. I was looking for this utility mainly as a replacement for mobipocket on my n95, by reading html on my itouch. The mobipocket reader on desktop seems to get bogged down when i put in too many rss links. The generated. mobi works great on my n95. however i dont have a full fledged utility to read mobi on itouch..textReader doesnt support hyperlinks on mobi or html. Stanza et al is too painful to load. I took a page out of your suggestion and did a few exernal tweaks..i now have a data file with name and rss url pairs. Awk reads this file and then invokes getfeed.pl. So i can now generate individual html files, and then have awk write a rudimentary html index/contents html file. Then scp this entire folder into the itouch(pre connected via itunnel). This works great and reads comfortably on both n95/itouch. But after all this still have an issue. the html is not reflowed requiring me to scroll from one end to the other for each line. So using plain html seems not such a great idea and have to rest using mobi on my itouch. Thanks..hari |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | ||
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Oct 2006
Location: Germany
Device: Iliad, Sony 505
|
Quote:
Quote:
![]() And thanks for mentioning itunnel, I'll surely have a look at this one.. Best regards, Tommy |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic The Daily | hjordanh | Barnes & Noble NOOK | 3 | 02-05-2010 10:48 AM |
Daily notifications? | devilsadvocate | Feedback | 8 | 01-22-2010 12:24 PM |
Daily Dilbert | billbadger | Calibre | 2 | 12-09-2009 02:42 PM |
Daily Comics | billbadger | Calibre | 0 | 12-08-2009 07:22 PM |
Amazon Daily | daffy4u | Amazon Kindle | 13 | 06-04-2008 07:07 PM |