RotimiBabalola / pydelicious

Automatically exported from code.google.com/p/pydelicious
Other
0 stars 0 forks source link

Main API class patch + some refactoring #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I guess this is as good a place as any to discuss:

some major rewriting of the API class. Encoding seems to work here (UTF-8).
I've been using/editing it for a while now so I'm not sure what exactly has
changed compared to the old DeliciousAPI class. What did change is that all
api functions now parse the result XML to a dicts-n-lists (JSON like
structure) or (optionally) just return the file-handle (wrapped in
urllib.addinfourl) to parse the response yourself. The 'convenience'
methods on the module (apiNew(), etc) should still work alike, but the
return value may be changed.

Didn't touch RSS and JSON api stuff (yet?), in fact I commented some RSS
code out since it didn't seem to be working? Also changed source code to
ASCII, etc. etc. Still work to be done.

Is there any interest here in my work? I've also written a simple
command-line utility to work with the bookmark collection from terminal;
rename tags, bundle, find posts, print as JSON, etc. I use it a lot. Handy
for import/export, batches, etc.

I'll attach the diff (pydelicious.py only) between de SVN checkout and my
local code. Not sure how I can check this in but if there's any interest
I'm sure this can be figured out.

Original issue reported on code.google.com by berend.v...@gmail.com on 25 May 2007 at 2:28

Attachments:

GoogleCodeExporter commented 8 years ago
Sounds great.  I made you a member of the project, so you should be able to 
commit
your changes directly.  Would you mind doing that?

The commandline tool sounds really cool too.  Do you want to upload that and 
manage
it through this project?

Keep up the good work.

Original comment by gregpin...@gmail.com on 25 May 2007 at 2:54

GoogleCodeExporter commented 8 years ago
I am just committing all the new stuff....

Encoding gives some issues in the tests, but the command-line util (tools/dlcs) 
is
working fine here.

Hope the rewriting in pydelicious.py doesn't break anything (too much).

Original comment by berend.v...@gmail.com on 9 Jul 2007 at 12:49

GoogleCodeExporter commented 8 years ago
Great work, berend!  I can't wait to try out the new stuff.

Original comment by gregpin...@gmail.com on 9 Jul 2007 at 6:41

GoogleCodeExporter commented 8 years ago
I'd be happy to hear about your experiences, anything. :)

del.icio.us is giving me lots of 503's lately. Major drawback of the current
tools/dlcs is that it fetches ALL posts when it needs an update (8059 atm with 
16622
tags...). Perhaps updating posts from posts/recent will help... but that'll 
only go
so far since the recent list is limited to 15 posts.

I've also been thinking about a more robust local collection (database) but 
that's a
bit out of my scope for now. This would make it faster ofcourse...

But first, bugs?

Original comment by berend.v...@gmail.com on 11 Jul 2007 at 2:28

GoogleCodeExporter commented 8 years ago
Well this is working here aside from some encoding issues which is another 
issue.

Original comment by berend.v...@gmail.com on 7 Nov 2007 at 9:22