maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   FeedingIt - RSS Reader (https://talk.maemo.org/showthread.php?t=39276)

Slocan 2010-12-26 20:23

Re: FeedingIt - RSS Reader
 
Something like this should do it (once again, not really tested):
Code:

import sqlite3
from xml.sax.saxutils import escape                                                         
db=sqlite3.connect("/home/user/.feedingit/ArchivedArticles.d/ArchivedArticles.db")
links=db.execute("SELECT title,link FROM feed;").fetchall()
import sqlite3
from xml.sax.saxutils import escape
db=sqlite3.connect("/home/user/.feedingit.0.8.0-4.bkp/ArchivedArticles.d/ArchivedArticles.db")
links=db.execute("SELECT title,link FROM feed;").fetchall()
file=open("/home/user/MyDocs/Links.txt")
for (title,link) in links: 
    file.write(escape(title) + " " + link)
file.close()


Laughing Man 2010-12-27 01:04

Re: FeedingIt - RSS Reader
 
Quote:

Originally Posted by Slocan (Post 904820)
Something like this should do it (once again, not really tested):
Code:

import sqlite3
from xml.sax.saxutils import escape                                                         
db=sqlite3.connect("/home/user/.feedingit/ArchivedArticles.d/ArchivedArticles.db")
links=db.execute("SELECT title,link FROM feed;").fetchall()
import sqlite3
from xml.sax.saxutils import escape
db=sqlite3.connect("/home/user/.feedingit.0.8.0-4.bkp/ArchivedArticles.d/ArchivedArticles.db")
links=db.execute("SELECT title,link FROM feed;").fetchall()
file=open("/home/user/MyDocs/Links.txt")
for (title,link) in links: 
    file.write(escape(title) + " " + link)
file.close()


Code doesn't seem to work. It reported

Quote:

Traceback (most recent call last):
File "FeedingExport.py", line 7, in <module>
db=sqlite3.connect("/home/user/.feedingit.0.8.0-4.bkp/ArchivedArticles.d/ArchivedArticles.db")
sqlite3.OperationalError: unable to open database file
I fixed the .feedingit.0.8.0-4bkp part, but then it reported.

Quote:

Traceback (most recent call last):
File "FeedingExport.py", line 7, in <module>
file.write(escape(title) + " " + link)
IOError: [Errno 9] Bad file descriptor
I added a a+ or a w statement to the file.open statement and now it's back to

Quote:

Traceback (most recent call last):
File "FeedingExport.py", line 11, in <module>
file.write(escape(title) + " " + link)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 38: ordinal not in range(128)

Slocan 2010-12-28 05:57

Re: FeedingIt - RSS Reader
 
Sorry, about the incorrect code. This time should be better, finally got a little bit more time.
Code:

import sqlite3
import codecs
from xml.sax.saxutils import escape
db=sqlite3.connect("/home/user/.feedingit/ArchivedArticles.d/ArchivedArticles.db")
links=db.execute("SELECT title,link FROM feed;").fetchall()
file=codecs.open("/home/user/MyDocs/Links.txt","w","utf-8")
for (title,link) in links:
    file.write("%s %s\n" %(escape(title),link))
file.close()


midori 2011-01-17 07:38

Re: FeedingIt - RSS Reader
 
Hi,
I was wondering how to download an article. I added the article to "archived articles" and if I open the preview of this archived article it says:"not yet downloaded. Click here to read online"
But it gives me no option to download the article. Am I supposed to download the article via microB? If so, where should save MicroB the article, to ensure that I can read it with Feedingit?

Slocan 2011-01-17 19:26

Re: FeedingIt - RSS Reader
 
Quote:

Originally Posted by midori (Post 922062)
I was wondering how to download an article. I added the article to "archived articles"

Hi, the article will be downloaded automatically the next time you update the "Archived Articles" feed (either through updating just this one, or updating all feeds, automatically or not).

kayamagan 2011-05-05 18:10

Re: FeedingIt - RSS Reader
 
i slocan

Feedingit.qml is the bigger feeds app i never seen, but it is not over.

what about your works on it?
thx

Slocan 2011-05-05 18:31

Re: FeedingIt - RSS Reader
 
Hi,
The work done on the QML interface was translated into Lukija ( http://maemo.org/packages/view/lukija/ ), a Read-It-Later client. Ultimately, I'd like to add the FeedingIt RSS capabilities back into Lukija, but it is proving to be more work/time than I can spend these days, so can't make any promises on when/if it will ever happen.

kayamagan 2011-05-08 13:50

Re: FeedingIt - RSS Reader
 
ok, thank you man

geneven 2011-06-06 01:11

Re: FeedingIt - RSS Reader
 
I wish there was an add-in or something that would filter out identical headlines. I get lots of them.

Slocan 2011-06-06 02:50

Re: FeedingIt - RSS Reader
 
Identical headlines in the same feed or in separate feeds? Like the same story picked up by different news channels?


All times are GMT. The time now is 21:54.

vBulletin® Version 3.8.8