Skip to main content

Python wrapper for www.diigo.com's API

Project description

Requirements
=======================
* `simplejson`_
* `pit`_ **optional**. See diigotest.py. You might love it ;)

.. _`simplejson`: http://pypi.python.org/pypi?:action=display&name=simplejson
.. _`pit`: http://pypi.python.org/pypi?:action=display&name=pit

instllation
=======================
$ sudo easy_install pydiigo

or

Download pydiigo and extract it, then

$ sudo python setup.py install

Notes
=======================
Diigo's API limits are very few. (You get 503 error)

Usage
=======================

Initialize API
--------------------
::

>>> from pydiigo import DiigoApi
>>> api = DiigoApi(user='YOUR_DIIGO_USERNAME', password='YOUR_DIIGO_PASSWORD')

Search Bookmarks
--------------------
::

>>> bookmarks = api.bookmarks_find(users='DIIGO_USER_NAME')
>>> for bookmark in bookmarks:
... print bookmark.title
... print bookmark.url
... print bookmark.tags
... print bookmark.desc
... print '-' * 10

* Bookmark Structure

* title (string)

* url (string)

* user (string)

* desc (string: description)

* tags (string: Seperated by comma with multiple tags.)

* shared (string: yes or no)

* created_at (string: eg.2009/03/04 02:57:09 +0000)

* updated_at (string: eg.2009/03/04 02:57:09 +0000)

* comments (string array)

* annotations (string array)

Add Bookmark
--------------------
::

>>> result = api.bookmark_add(title='', description='',url='', shared='yes', tags='')
>>> print result['message']
added 1 bookmark

* required arguments

* url

Update Bookmark
--------------------
::

>>> result = api.bookmark_update(title='', description='',url='', shared='yes', tags='')
>>> print result['message']
updated 1 bookmark

* required arguments

* url

Delete Bookmark
--------------------
::

>>> result = api.bookmark_delete(url='')
>>> print result['message']
updated 1 bookmark

* required arguments

* url

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydiigo-0.1.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file pydiigo-0.1.tar.gz.

File metadata

  • Download URL: pydiigo-0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydiigo-0.1.tar.gz
Algorithm Hash digest
SHA256 360be34d6fda0cb66edbb7651b1b96a90c4644742f5388184cc517ec87e65443
MD5 036f2efd4dcda59442c23a2e26b87554
BLAKE2b-256 6abf4f1df61be5061045627c22f5ebe62f47a6914618077589bbe0bd2893ab26

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page