Active Topics

 



Notices


Reply
Thread Tools
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#471
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()
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#472
Originally Posted by Slocan View Post
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

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.

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

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)
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 

The Following User Says Thank You to Laughing Man For This Useful Post:
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#473
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()
 

The Following User Says Thank You to Slocan For This Useful Post:
Posts: 5 | Thanked: 3 times | Joined on Dec 2010
#474
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?
 
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#475
Originally Posted by midori View Post
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).
 
Posts: 50 | Thanked: 14 times | Joined on Mar 2011
#476
i slocan

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

what about your works on it?
thx
 
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#477
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.
 

The Following 3 Users Say Thank You to Slocan For This Useful Post:
Posts: 50 | Thanked: 14 times | Joined on Mar 2011
#478
ok, thank you man
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#479
I wish there was an add-in or something that would filter out identical headlines. I get lots of them.
__________________
All I want is 40 acres, a mule, and Xterm.
 
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#480
Identical headlines in the same feed or in separate feeds? Like the same story picked up by different news channels?
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:45.