[GH-ISSUE #103] Archive from wallabag JSON not working #72

Closed
opened 2026-03-01 14:40:22 +03:00 by kerem · 2 comments
Owner

Originally created by @nodh on GitHub (Oct 5, 2018).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/103

I've got an JSON export from the latest wallabag release (2.3.2), but bookmark-archiver won't import that:

Traceback (most recent call last):
  File "./archive", line 161, in <module>
    links = merge_links(archive_path=out_dir, import_path=source)
  File "./archive", line 53, in merge_links
    raw_links = parse_links(import_path)
  File "/var/www/1337.at/nextcloud-shared/bookmark-archiver/archiver/parse.py", line 52, in parse_links
    links += list(parser_func(file))
  File "/var/www/1337.at/nextcloud-shared/bookmark-archiver/archiver/parse.py", line 103, in parse_json_export
    'url': erg['href'],
KeyError: 'href'
Originally created by @nodh on GitHub (Oct 5, 2018). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/103 I've got an JSON export from the latest wallabag release (2.3.2), but bookmark-archiver won't import that: ``` Traceback (most recent call last): File "./archive", line 161, in <module> links = merge_links(archive_path=out_dir, import_path=source) File "./archive", line 53, in merge_links raw_links = parse_links(import_path) File "/var/www/1337.at/nextcloud-shared/bookmark-archiver/archiver/parse.py", line 52, in parse_links links += list(parser_func(file)) File "/var/www/1337.at/nextcloud-shared/bookmark-archiver/archiver/parse.py", line 103, in parse_json_export 'url': erg['href'], KeyError: 'href' ```
kerem closed this issue 2026-03-01 14:40:22 +03:00
Author
Owner

@pirate commented on GitHub (Oct 7, 2018):

May be a while before I can take a look at this unfortunately, if you need it working ASAP you can transform the json manually to get the links into the href field.

Sorry for the trouble!

<!-- gh-comment-id:427616188 --> @pirate commented on GitHub (Oct 7, 2018): May be a while before I can take a look at this unfortunately, if you need it working ASAP you can transform the json manually to get the links into the `href` field. Sorry for the trouble!
Author
Owner

@nodh commented on GitHub (Oct 8, 2018):

Nevermind, I figured it out by myself and created a pull request that fixes this issue (at least for me).

<!-- gh-comment-id:427904123 --> @nodh commented on GitHub (Oct 8, 2018): Nevermind, I figured it out by myself and created a pull request that fixes this issue (at least for me).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#72
No description provided.