0

Is there any library to parse the .adr file format used by Opera bookmarks? Does it also support writing in that format?

At first, I'd ask for a Python library, but I'm also curious if there are such library for other languages.

Denilson Sá Maia
  • 47,466
  • 33
  • 109
  • 111
  • Somewhat relevant: http://www.opera.com/docs/operafiles/#generic documents the underlying binary data format, though not how it is applied to bookmarks. – gsnedders Jan 14 '13 at 20:58
  • @gsnedders Nice link, but it does not document the `.adr` format. That generic binary format is used for other files, but not for `.adr` (which is actually plain-text-ish). – Denilson Sá Maia Jan 20 '13 at 02:57
  • Ah, woops! I thought it was. :) – gsnedders Jan 21 '13 at 09:42

2 Answers2

1

There is parser example for Perl language https://github.com/cosimo/Bookmarks-Parser/

Darkwing
  • 314
  • 9
  • 24
0

I have been tinkering with this recently and wrote parser in PHP for it.

I am not sure writing or modifying it is viable, given items contain some kinds of internal IDs whichi probably tie into Opera Link and stuff.

Rarst
  • 2,335
  • 16
  • 26
  • By experimentation, if you omit the ID and CREATED fields, opera can still import the entries okay, and will create those fields. – Luke H May 13 '14 at 20:45