Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 15 Dec 2017, 21:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
How to add RSS feeds to Newsbeuter?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Sun 06 Apr 2014, 15:36    Post subject:  How to add RSS feeds to Newsbeuter?
Subject description: bash command line manually add rss feed urls
 

How can I add RSS feeds to Newsbeuter and get it working?
I have it installed via SFS onto my live CD.


# newsbeuter
XDG: configuration directory '/root/.config/newsbeuter' not accessible, using '/root/.newsbeuter' instead.
Starting newsbeuter 2.7...
Loading configuration...done.
Opening cache...done.
Loading URLs from /root/.newsbeuter/urls...done.
Error: no URLs configured. Please fill the file /root/.newsbeuter/urls with RSS feed URLs or import an OPML file.

newsbeuter 2.7
usage: newsbeuter [-i <file>|-e] [-u <urlfile>] [-c <cachefile>] [-x <command> ...] [-h]
-e export OPML feed to stdout
-r refresh feeds on start
-i <file> import OPML file
-u <urlfile> read RSS feed URLs from <urlfile>
-c <cachefile> use <cachefile> as cache file
-C <configfile> read configuration from <configfile>
-X clean up cache thoroughly
-x <command>... execute list of commands
-o activate offline mode (only applies to Google Reader synchronization mode)
-q quiet startup
-v get version information
-l <loglevel> write a log with a certain loglevel (valid values: 1 to 6)
-d <logfile> use <logfile> as output log file
-E <file> export list of read articles to <file>
-I <file> import list of read articles from <file>
-h this help
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Sun 06 Apr 2014, 15:52    Post subject:  

Welcome Ruuatl.. Have you read through the docs?

Short how-to >> http://blog.sanctum.geek.nz/rss-with-newsbeuter/

No sudo, no gedit >> http://www.webupd8.org/2010/01/newsbeuter-command-line-linux-feed.html
Back to top
View user's profile Send private message 
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Mon 07 Apr 2014, 10:27    Post subject:  

Yes, I had seen all three of those sources and had tried all of the commands.
Nothing seems relevant to Precise Puppy Linux.
The commands don’t work in Precise Puppy Linux.
Here are the error messages I get:

# nano
bash: nano: command not found

# sudo gedit ~/.newsbeuter/urls
sudo: gedit: command not found

# newsbeuter -i /path/to/subscriptions.xml
I/O warning : failed to load external entity “/path/to/subscriptions.xml"
An error occured while parsing /path/to/subscriptions.xml.


Now, the video stopped playing.
I kept trying to stop it to see the command and there is an error message:

You have requested an encrypted page that contains some unencrypted information. Information that you see or enter on this page could easily be read by a third party. Preferences.

Anyway, I think the path is:
/usr/local/bin/newsbeuter
or
usr/local/share/doc/newsbeuter

And the error message (for my text editor) is:
# ed -a /usr/local/bin/newsbeuter
ed: invalid option -- a
# ed -i /usr/local/bin/newsbeuter
ed: invalid option -- i

# ed /usr/local/bin/newsbeuter
ed /usr/local/bin/newsbeuter
Newline appended
1137120


?

?

?
q
#

From doc #1:
...newsbeuter can’t start without any configured feeds. To add feeds to newsbeuter, you can either add URLs to the configuration file $HOME/.newsbeuter/urls or you can import an OPML file by running "newsbeuter -i blogroll.opml". To manually add URLs, open the file with your favorite text editor and add the URLs, one per line:
http://rss.cnn.com/rss/cnn_topstories.rss
http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml

More error messages:
# $HOME/.newsbeuter/urls
bash: /root/.newsbeuter/urls: No such file or directory
# newsbeuter -i blogroll.opml
I/O warning : failed to load external entity “blogroll.opml"
An error occured while parsing blogroll.opml.
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Mon 07 Apr 2014, 10:57    Post subject:  

You may have seen'm >> but didn't read'm. Like I said, NO sudo, NO gedit and NO nano for this matter.

The first time you try'n launch the dern thing it'll create your ~/.newsbeuter directory.

Nav there and create a blank "urls" file.

You could "touch" this file as well: touch ~/.newsbeuter/urls

Now open it, stick a few feeds in, then >> "newsbeuter" from a shell.

To open via terminal Wink geany ~/.newsbeuter/urls

Geany's typically Pups default text editor.
newsbeuter_configured.jpg
 Description   
 Filesize   65.49 KB
 Viewed   837 Time(s)

newsbeuter_configured.jpg

Back to top
View user's profile Send private message 
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Mon 07 Apr 2014, 13:33    Post subject:  

That seemed to do it, thanks.
I got the "blue screen" and am reading the news!
Newsbeuter seems to be very nice, and is as fast as they say.

# touch ~/.newsbeuter/urls
# geany ~/.newsbeuter/urls
newsbeuter

http://rss.cnn.com/rss/cnn_topstories.rss
http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
q

^[[A
^C
# newsbeuter
XDG: configuration directory ‘/root/.config/newsbeuter’ not accessible, using ‘/root/.newsbeuter’ instead.
Starting newsbeuter 2.7...
Loading configuration...done.
Opening cache...done.
Loading URLs from /root/.newsbeuter/urls...done.
Loading articles from cache...done.
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Mon 07 Apr 2014, 13:39    Post subject:  

Good.. I knew you'd get it. And yep, shell apps are pretty fast! Heck, might even keep this one..

PS - How are the fonts on that console, OK? Or would you prefer a wider range.. more control?
Back to top
View user's profile Send private message 
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Tue 08 Apr 2014, 04:27    Post subject:  

The fonts look all right, but how would you change them?

My Google Reader subscriptions .xml file didn't go in properly.
I tried downloading from an email attachment into the URLs.
That didn't work so I pasted the file in and that didn't work either.
The XML file is in html and is not just URLs.
The blue screen looks like a mess and none of the RSS feeds are readable.
How would I "import" them properly?

I tried the command in the Newsbeuter doc:
# urls-source "opml"
bash: urls-source: command not found

Does "OPML" have something to do with importing?
The Newsbeuter doc says to do the following:

4.13. OPML Online Subscription Mode
The OPML online subscription mode works similar to the Google Reader synchronization mode, except that no information about read articles is synchronized back. When enabled, all feeds that are listed in the feed list will be taken from one or more OPML files that are downloaded from a freely configurable URL.
To enable this mode, the following configuration needs to be done:

urls-source "opml"
opml-url "<opml url>" ["<opml url>" ...]

"opml" must be specified as source for the feed URLs, and the URLs of the OPML file needs to be specified, too. As with Google Reader synchronization mode, the offline mode via "newsbeuter -o" also works with OPML online subscription mode.

3.3. Migrating from other RSS Feed Readers
When you have exported the subscriptions from your old RSS feed reader, you can import them into newsbeuter:
newsbeuter -i ~/blogroll.opml

...and my error message:
# newsbeuter -i ~/blogroll.opml
I/O warning : failed to load external entity "/root/blogroll.opml"
An error occured while parsing /root/blogroll.opml.

The feeds aren't opening in the browser for me.
o:Open in Browser e:Enqueue ?:Help
^B bookmark Bookmark current link/article

I tried o and (is it shift or caret?) B in the menu and within the article.
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Tue 08 Apr 2014, 05:52    Post subject:  

Get yourself a new console for the fonts.. LXTerminal, ROXTerm or Sakura should all be in PPM.

For your subscriptions, supply me a link or page listing those you'd like to add.

If a file >> "gzip" it and attach with your reply or pm me..
Back to top
View user's profile Send private message 
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Tue 08 Apr 2014, 10:23    Post subject:  

>How would I "import" them properly?
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Tue 08 Apr 2014, 13:06    Post subject:  

Attach a copy of your file for me to sample.

This or "open as text" your Google Reader subscriptions xml file and convert to opml here.

And when you import, you've gotta include the directory path.
Back to top
View user's profile Send private message 
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Tue 08 Apr 2014, 22:21    Post subject:  

I put my file in there to convert and this is all that came out:

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions imported from iGoogle</title>
</head>
<body>
</body>
</opml>
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Wed 09 Apr 2014, 02:30    Post subject:  

Very Happy I suppose it's possible there's nothing inside! Didn't their service end about a year ago?

Right click inside the same directory as your subscriptions xml >> "window" >> "terminal here" and:
Code:
gzip your_file_name.xml

Use the files exact name and upload as an attachment.

I've gotta *see* what we're working with..
Back to top
View user's profile Send private message 
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Wed 09 Apr 2014, 09:55    Post subject:  

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>username subscriptions in Google Reader</title>
</head>
<body>
<outline text="(title unknown)" title="(title unknown)"
type="rss"
xmlUrl="http://realestatetalk.org/blog/comments/feed/" htmlUrl="http://realestatetalk.org/real-estate"/>
<outline text="(title unknown)" title="(title unknown)"
.
.
.
</outline>
</body>
</opml>

I tried navigating to the directory and righ-clicking, but didn't see an option for a terminal window here.
/usr/local/share/doc/newsbeuter/examples/google-reader-subsctiptions.xml
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7775
Location: World_Hub

PostPosted: Wed 09 Apr 2014, 10:52    Post subject:  

Newsbeuter isn't gonna find any rss feeds for you, you've gotta go out and find'm.

Let me ask.. Which were you reading beforehand? That real estate site's defunct..

Seriously, figure out what you wanna read and start loading your "urls" file.

I currently have "http://www.huffingtonpost.ca/feeds/news.xml" loaded..
huff-post_added.jpg
Description 
jpg

 Download 
Filename  huff-post_added.jpg 
Filesize  120.43 KB 
Downloaded  166 Time(s) 
term_here.jpg
 Description   
 Filesize   113.99 KB
 Viewed   713 Time(s)

term_here.jpg

Back to top
View user's profile Send private message 
ruuatl

Joined: 06 Apr 2014
Posts: 18

PostPosted: Wed 09 Apr 2014, 20:41    Post subject:  

How did you get to the ~/test directory?
Then where did you right-click?

I have been clicking Menu>Document>Abiword word processor.
Do you use and go through Geany?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0577s ][ Queries: 12 (0.0052s) ][ GZIP on ]