Ressetejar Delicious

Estic tornant a avaluar Delicious (em fa “tilín” però no ho acabo de veure clar). I quan estàs potinejant i fent proves voldries ressetejar el compte i deixar-lo com quan va venir al món, però mira les FAQ de Can Delicious:

How do I delete all my bookmarks?

The easiest way to do this right now is to delete your account
(this is in your settings) and then re-register it -- you'll
be able to register the same username immediately after deleting it.

Si, home, ara hi corro. Sort que amb una mica de Python i el mòdul pydelicious es pot fer sense suar.

import pydelicious

api = pydelicious.apiNew('user', 'password')

posts_data = api.posts_all()
posts_list = posts_data['posts']

for post in posts_list:
  response = api.posts_delete (post['href'])
This entry was posted in codi-lliure and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>