Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive from wallabag JSON not working #103

Closed
nodh opened this issue Oct 5, 2018 · 2 comments
Closed

Archive from wallabag JSON not working #103

nodh opened this issue Oct 5, 2018 · 2 comments

Comments

@nodh
Copy link
Contributor

nodh commented Oct 5, 2018

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'
@pirate
Copy link
Member

pirate commented 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!

@nodh
Copy link
Contributor Author

nodh commented Oct 8, 2018

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

@nodh nodh closed this as completed Oct 8, 2018
@pirate pirate changed the title Archive from wallabag not working Archive from wallabag JSON not working Mar 1, 2024
@pirate pirate mentioned this issue Mar 1, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants